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

Unified Diff: test/abp2blocklist.js

Issue 29468579: Issue 5332 - Do not filter out rules containing non-ASCII characters (Closed) Base URL: https://hg.adblockplus.org/abp2blocklist
Patch Set: Created June 19, 2017, 4:09 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
@@ -271,14 +271,16 @@
test.done();
},
testUnicode: function(test)
{
testRules(test, ["$domain=🐈.cat"], ["*xn--zn8h.cat"],
rules => rules[0]["trigger"]["if-domain"]);
- testRules(test, ["🐈$domain=🐈.cat"], []);
- testRules(test, ["###🐈"], []);
+ testRules(test, ["🐈$domain=🐈.cat"], "^https?://.*🐈",
Manish Jethani 2017/06/19 16:12:16 I'll update this further in 29468575.
+ rules => rules[0]["trigger"]["url-filter"]);
+ testRules(test, ["###🐈"], "[id=🐈]",
+ rules => rules[0]["action"]["selector"]);
test.done();
}
};
« 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