Index: test/filterListener.js |
=================================================================== |
--- a/test/filterListener.js |
+++ b/test/filterListener.js |
@@ -61,22 +61,21 @@ |
function checkKnownFilters(test, text, expected) |
{ |
let result = {}; |
for (let type of ["blacklist", "whitelist"]) |
{ |
let matcher = defaultMatcher[type]; |
let filters = []; |
- for (let [keyword, list] of matcher.filterByKeyword) |
+ for (let [keyword, set] of matcher.filterByKeyword) |
{ |
- for (let i = 0; i < list.length; i++) |
+ for (let filter of set) |
{ |
- let filter = list[i]; |
- test.equal(matcher.getKeywordForFilter(filter), keyword, |
+ test.equal(matcher.findKeyword(filter), keyword, |
"Keyword of filter " + filter.text); |
filters.push(filter.text); |
} |
} |
result[type] = filters; |
} |
let elemHide = sandboxedRequire("../lib/elemHide"); |