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

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

Issue 6309214725079040: Issue 1409 - Fix some errors in adblockplustest (Closed)
Patch Set: Created Sept. 19, 2014, 10:35 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 | « chrome/content/tests/filterStorage.js ('k') | chrome/content/tests/popupBlocker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/tests/matcher.js
===================================================================
--- a/chrome/content/tests/matcher.js
+++ b/chrome/content/tests/matcher.js
@@ -5,17 +5,17 @@
function compareKeywords(text, expected)
{
for (let filter of [Filter.fromText(text), Filter.fromText("@@" + text)])
{
let matcher = new Matcher();
let result = [];
for (let dummy of expected)
{
- keyword = matcher.findKeyword(filter);
+ let keyword = matcher.findKeyword(filter);
result.push(keyword);
if (keyword)
{
let dummyFilter = Filter.fromText('^' + keyword + '^');
dummyFilter.filterCount = Infinity;
matcher.add(dummyFilter);
}
}
« no previous file with comments | « chrome/content/tests/filterStorage.js ('k') | chrome/content/tests/popupBlocker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld