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

Unified Diff: test/browser/elemHideEmulation.js

Issue 29582689: Noissue - Fix the escaping of '{' and '}' in CSS selectors (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Also update the content script Created Oct. 18, 2017, 7:39 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/filterClasses.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
@@ -216,28 +216,28 @@
expectHidden(test, toHide);
}).catch(unexpectedError.bind(test)).then(() => test.done());
};
exports.testPropertySelectorWithEscapedBrace = function(test)
{
let toHide = createElementWithStyle("{background-color: #000}");
applyElemHideEmulation(
- [":-abp-properties(/background.\\x7B 0,6\\x7D : rgb\\(0, 0, 0\\)/)"]
+ [":-abp-properties(/background.\\7B 0,6\\7D : rgb\\(0, 0, 0\\)/)"]
).then(() =>
{
expectHidden(test, toHide);
}).catch(unexpectedError.bind(test)).then(() => test.done());
};
exports.testPropertySelectorWithImproperlyEscapedBrace = function(test)
{
let toHide = createElementWithStyle("{background-color: #000}");
applyElemHideEmulation(
- [":-abp-properties(/background.\\x7B0,6\\x7D: rgb\\(0, 0, 0\\)/)"]
+ [":-abp-properties(/background.\\7B0,6\\7D: rgb\\(0, 0, 0\\)/)"]
).then(() =>
{
expectVisible(test, toHide);
}).catch(unexpectedError.bind(test)).then(() => test.done());
};
exports.testDynamicallyChangedProperty = function(test)
{
« no previous file with comments | « lib/filterClasses.js ('k') | test/filterClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld