Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/browser/elemHideEmulation.js

Issue 30002601: Issue 7284 - Move CSS escaping to createStyleSheet (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: more nits Created Feb. 18, 2019, 1:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/filterClasses.js ('k') | test/elemHide.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/browser/elemHideEmulation.js
===================================================================
--- a/test/browser/elemHideEmulation.js
+++ b/test/browser/elemHideEmulation.js
@@ -297,38 +297,16 @@
let selectors = [":-abp-properties(/.*color: rgb\\(0, 0, 0\\)/)"];
if (await applyElemHideEmulation(test, selectors))
expectHidden(test, toHide);
test.done();
};
-exports.testPropertySelectorWithEscapedBrace = async function(test)
-{
- let toHide = createElementWithStyle("{background-color: #000}");
- let selectors = [":-abp-properties(/background.\\7B 0,6\\7D : rgb\\(0, 0, 0\\)/)"];
-
- if (await applyElemHideEmulation(test, selectors))
- expectHidden(test, toHide);
-
- test.done();
-};
-
-exports.testPropertySelectorWithImproperlyEscapedBrace = async function(test)
-{
- let toHide = createElementWithStyle("{background-color: #000}");
- let selectors = [":-abp-properties(/background.\\7B0,6\\7D: rgb\\(0, 0, 0\\)/)"];
-
- if (await applyElemHideEmulation(test, selectors))
- expectVisible(test, toHide);
-
- test.done();
-};
-
exports.testDynamicallyChangedProperty = async function(test)
{
let toHide = createElementWithStyle("{}");
let selectors = [":-abp-properties(background-color: rgb(0, 0, 0))"];
if (await applyElemHideEmulation(test, selectors))
{
expectVisible(test, toHide);
« no previous file with comments | « lib/filterClasses.js ('k') | test/elemHide.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld