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

Unified Diff: test/filterClasses.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 | « test/browser/elemHideEmulation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterClasses.js
===================================================================
--- a/test/filterClasses.js
+++ b/test/filterClasses.js
@@ -386,23 +386,23 @@
exports.testElemHideRulesWithBraces = function(test)
{
compareFilter(
test, "###foo{color: red}", [
"type=elemhide",
"text=###foo{color: red}",
"selectorDomain=",
- "selector=#foo\\x7B color: red\\x7D ",
+ "selector=#foo\\7B color: red\\7D ",
"domains="
]
);
compareFilter(
test, "foo.com#?#:-abp-properties(/margin: [3-4]{2}/)", [
"type=elemhideemulation",
"text=foo.com#?#:-abp-properties(/margin: [3-4]{2}/)",
"selectorDomain=foo.com",
- "selector=:-abp-properties(/margin: [3-4]\\x7B 2\\x7D /)",
+ "selector=:-abp-properties(/margin: [3-4]\\7B 2\\7D /)",
"domains=FOO.COM"
]
);
test.done();
};
« no previous file with comments | « test/browser/elemHideEmulation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld