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

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

Issue 29321487: Issue 2738 - Fix tests to pass type bit mask to matching functions (Closed)
Patch Set: Created July 9, 2015, 1:46 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/performance/matching.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/regexpFilters_matching.js
diff --git a/chrome/content/tests/regexpFilters_matching.js b/chrome/content/tests/regexpFilters_matching.js
index adbaa5e75bf4604dc12b2567900d2b06b3157a0a..c2957d87de55285dd3876893f2b82a3e09c376fd 100644
--- a/chrome/content/tests/regexpFilters_matching.js
+++ b/chrome/content/tests/regexpFilters_matching.js
@@ -7,7 +7,7 @@
function testMatch_internal(text, location, contentType, docDomain, thirdParty, sitekey, expected)
{
let filter = Filter.fromText(text);
- let result = filter.matches(location, contentType, docDomain, thirdParty, sitekey);
+ let result = filter.matches(location, RegExpFilter.toTypeMask(contentType), docDomain, thirdParty, sitekey);
equal(!!result, expected, '"' + text + '".matches(' + location + ", " + contentType + ", " + docDomain + ", " + (thirdParty ? "third-party" : "first-party") + ", " + (sitekey || "no-sitekey") + ")");
}
testMatch_internal(text, location, contentType, docDomain, thirdParty, sitekey, expected);
« no previous file with comments | « chrome/content/tests/performance/matching.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld