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

Unified Diff: test/elemHide.js

Issue 29790629: Issue 6690 - Always ignore trailing dot in document domain (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Ignore trailing dot in ElemHide.getSelectorsForDomain Created May 26, 2018, 12:10 a.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/domainRestrictions.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/elemHide.js
===================================================================
--- a/test/elemHide.js
+++ b/test/elemHide.js
@@ -174,16 +174,17 @@
// Test criteria
addFilter("##hello");
addFilter("~example.com##world");
addFilter("foo.com##specific");
testResult(test, "foo.com", ["specific"], true);
testResult(test, "foo.com", ["hello", "specific", "world"], false);
testResult(test, "foo.com", ["hello", "specific", "world"]);
+ testResult(test, "foo.com.", ["hello", "specific", "world"]);
removeFilter("foo.com##specific");
removeFilter("~example.com##world");
removeFilter("##hello");
testResult(test, "foo.com", []);
addFilter("##hello");
testResult(test, "foo.com", [], true);
testResult(test, "foo.com", ["hello"], false);
« no previous file with comments | « test/domainRestrictions.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld