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: Created May 26, 2018, 12:24 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
@@ -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, "example.com", [], true);
Manish Jethani 2018/05/26 00:26:33 Surely the purpose of adding the filter ~example.c
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