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: Slight improvement Created Oct. 1, 2015, 12:11 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
Index: chrome/content/tests/filterClasses.js
diff --git a/chrome/content/tests/filterClasses.js b/chrome/content/tests/filterClasses.js
index 7b9afdf6cbd63a91b824b58031273ceb833c99e7..ca2f25124628c5eb124076185bae8e64f9994e09 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.DOCUMENT | RegExpFilter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP));
+ addProperty("contentType", 0x7FFFFFFF & ~(RegExpFilter.typeMap.DOCUMENT | RegExpFilter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP |
Thomas Greiner 2015/10/01 16:12:04 Detail: If you think that the 80 characters rule s
kzar 2015/10/02 10:19:28 Most of these test files are pretty bad when it co
Thomas Greiner 2015/10/02 13:55:47 Thanks, I appreciate that.
+ 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()
{

Powered by Google App Engine
This is Rietveld