| Index: test/filterListener.js |
| =================================================================== |
| --- a/test/filterListener.js |
| +++ b/test/filterListener.js |
| @@ -78,26 +78,25 @@ |
| } |
| let elemHide = sandboxedRequire("../lib/elemHide"); |
| result.elemhide = []; |
| for (let key in elemHide.filterByKey) |
| result.elemhide.push(elemHide.filterByKey[key].text); |
| result.elemhideexception = []; |
| - for (let selector in elemHide.exceptions) |
| + for (let [, list] of elemHide.exceptions) |
| { |
| - let list = elemHide.exceptions[selector]; |
| for (let exception of list) |
| result.elemhideexception.push(exception.text); |
| } |
| let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation"); |
| result.elemhideemulation = []; |
| - for (let filterText in elemHideEmulation.filters) |
| + for (let filterText of elemHideEmulation.filters) |
| result.elemhideemulation.push(filterText); |
| let types = ["blacklist", "whitelist", "elemhide", "elemhideexception", |
| "elemhideemulation"]; |
| for (let type of types) |
| { |
| if (!(type in expected)) |
| expected[type] = []; |