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

Unified Diff: test/matcher.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Created Feb. 20, 2017, 10:02 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
Index: test/matcher.js
diff --git a/test/matcher.js b/test/matcher.js
index 47a469bb445cfa9594f0e96a2f547e253b94156c..5f4f6d0f81b5ccae581965908599ee7d20d97edb 100644
--- a/test/matcher.js
+++ b/test/matcher.js
@@ -48,7 +48,7 @@ function compareKeywords(test, text, expected)
result.push(keyword);
if (keyword)
{
- let dummyFilter = Filter.fromText('^' + keyword + '^');
+ let dummyFilter = Filter.fromText("^" + keyword + "^");
dummyFilter.filterCount = Infinity;
matcher.add(dummyFilter);
}
@@ -76,7 +76,7 @@ function checkMatch(test, filters, location, contentType, docDomain, thirdParty,
for (let filter of filters)
combinedMatcher.add(Filter.fromText(filter));
- let result = combinedMatcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey, specificOnly);
+ result = combinedMatcher.matchesAny(location, RegExpFilter.typeMap[contentType], docDomain, thirdParty, sitekey, specificOnly);
if (result)
result = result.text;

Powered by Google App Engine
This is Rietveld