Index: test/elemHideEmulation.js |
=================================================================== |
--- a/test/elemHideEmulation.js |
+++ b/test/elemHideEmulation.js |
@@ -56,57 +56,57 @@ exports.testDomainRestrictions = functio |
ElemHideEmulation.clear(); |
ElemHide.clear(); |
} |
testSelectorMatches( |
"Ignore generic filters", |
[ |
- "##[-abp-properties='foo']", "example.com##[-abp-properties='foo']", |
- "~example.com##[-abp-properties='foo']" |
+ "#?#:-abp-properties(foo)", "example.com#?#:-abp-properties(foo)", |
+ "~example.com#?#:-abp-properties(foo)" |
], |
"example.com", |
- ["example.com##[-abp-properties='foo']"] |
+ ["example.com#?#:-abp-properties(foo)"] |
); |
testSelectorMatches( |
"Ignore selectors with exceptions", |
[ |
- "example.com##[-abp-properties='foo']", |
- "example.com##[-abp-properties='bar']", |
- "example.com#@#[-abp-properties='foo']" |
+ "example.com#?#:-abp-properties(foo)", |
+ "example.com#?#:-abp-properties(bar)", |
+ "example.com#@#:-abp-properties(foo)" |
], |
"example.com", |
- ["example.com##[-abp-properties='bar']"] |
+ ["example.com#?#:-abp-properties(bar)"] |
); |
testSelectorMatches( |
"Ignore filters that include parent domain but exclude subdomain", |
[ |
- "~www.example.com,example.com##[-abp-properties='foo']" |
+ "~www.example.com,example.com#?#:-abp-properties(foo)" |
], |
"www.example.com", |
[] |
); |
testSelectorMatches( |
"Ignore filters with parent domain if exception matches subdomain", |
[ |
- "www.example.com#@#[-abp-properties='foo']", |
- "example.com##[-abp-properties='foo']" |
+ "www.example.com#@#:-abp-properties(foo)", |
+ "example.com#?#:-abp-properties(foo)" |
], |
"www.example.com", |
[] |
); |
testSelectorMatches( |
"Ignore filters for other subdomain", |
[ |
- "www.example.com##[-abp-properties='foo']", |
- "other.example.com##[-abp-properties='foo']" |
+ "www.example.com#?#:-abp-properties(foo)", |
+ "other.example.com#?#:-abp-properties(foo)" |
], |
"other.example.com", |
- ["other.example.com##[-abp-properties='foo']"] |
+ ["other.example.com#?#:-abp-properties(foo)"] |
); |
test.done(); |
}; |
exports.testElemHideEmulationFiltersContainer = function(test) |
{ |
function compareRules(description, domain, expectedMatches) |