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

Unified Diff: chrome/content/tests/filterClasses.js

Issue 6439460933730304: Issue 616 - Add tests for $generichide and $genericblock (Closed)
Patch Set: Removed comment that I had forgotten about. Created March 19, 2015, 4:19 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 | « chrome/content/tests/elemhide.js ('k') | chrome/content/tests/matcher.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/filterClasses.js
diff --git a/chrome/content/tests/filterClasses.js b/chrome/content/tests/filterClasses.js
index 0c389e836d5eb7c7d4fe95b4facfbf124d6de0fd..d26257ed2569c11c913b587cd6e178b694a8a963 100644
--- a/chrome/content/tests/filterClasses.js
+++ b/chrome/content/tests/filterClasses.js
@@ -92,7 +92,8 @@
}
if (type == "whitelist" || type == "filterlist")
{
- addProperty("contentType", 0x7FFFFFFF & ~(RegExpFilter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP));
+ addProperty("contentType", 0x7FFFFFFF & ~(RegExpFilter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP |
+ RegExpFilter.typeMap.GENERICHIDE | RegExpFilter.typeMap.GENERICBLOCK));
addProperty("matchCase", "false");
addProperty("thirdParty", "null");
addProperty("domains", "");
@@ -197,7 +198,7 @@
});
let t = RegExpFilter.typeMap;
- let defaultTypes = 0x7FFFFFFF & ~(t.ELEMHIDE | t.DOCUMENT | t.POPUP);
+ let defaultTypes = 0x7FFFFFFF & ~(t.ELEMHIDE | t.DOCUMENT | t.POPUP | t.GENERICHIDE | t.GENERICBLOCK);
test("Special characters", function()
{
« no previous file with comments | « chrome/content/tests/elemhide.js ('k') | chrome/content/tests/matcher.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld