Index: test/abp2blocklist.js |
=================================================================== |
--- a/test/abp2blocklist.js |
+++ b/test/abp2blocklist.js |
@@ -49,23 +49,24 @@ |
test.done(); |
}, |
testElementHidingExceptions: function(test) |
{ |
testRules(test, [ |
"##.whatever", |
- "test.com###something", |
+ "test.com,anothertest.com###something", |
"@@||special.test.com^$elemhide", |
"@@||test.com^$generichide", |
+ "@@||anothertest.com^$elemhide", |
"@@^something^$elemhide", |
"@@^anything^$generichide" |
], [ |
- ["^https?://", ["*test.com", "*special.test.com"]], |
+ ["^https?://", ["*test.com", "*special.test.com", "*anothertest.com"]], |
["^https?://([^/:]*\\.)?test\\.com[/:]", ["*special.test.com"]] |
], rules => rules.map(rule => [rule.trigger["url-filter"], |
rule.trigger["unless-domain"]])); |
testRules(test, ["#@#whatever"], []); |
testRules(test, ["test.com#@#whatever"], []); |
testRules(test, ["~test.com#@#whatever"], []); |