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

Unified Diff: test/abp2blocklist.js

Issue 29493605: Noissue - Eliminate CSS rules for whitelisted domains (Closed) Base URL: https://hg.adblockplus.org/abp2blocklist
Patch Set: Created July 20, 2017, 3:29 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/abp2blocklist.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"], []);
« no previous file with comments | « lib/abp2blocklist.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld