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

Unified Diff: test/elemHide.js

Issue 29790638: Noissue - Add criteria test for ~example.com##world (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Rebase Created June 5, 2018, 5:38 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 | « no previous file | 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
@@ -175,16 +175,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"]);
+ testResult(test, "example.com", [], true);
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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld