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); |
} |
} |