| Index: test/filterListener.js |
| =================================================================== |
| --- a/test/filterListener.js |
| +++ b/test/filterListener.js |
| @@ -27,17 +27,17 @@ |
| let SpecialSubscription = null; |
| let ElemHideException = null; |
| exports.setUp = function(callback) |
| { |
| sandboxedRequire = createSandbox({ |
| extraExports: { |
| elemHide: ["knownFilters"], |
| - elemHideEmulation: ["filters"] |
| + elemHideEmulation: ["knownFilters"] |
| } |
| }); |
| // We need to require the filterListener module so that filter changes will be |
| // noticed, even though we don't directly use the module here. |
| sandboxedRequire("../lib/filterListener"); |
| ( |
| @@ -86,17 +86,17 @@ |
| if (filter instanceof ElemHideException) |
| result.elemhideexception.push(filter.text); |
| else |
| result.elemhide.push(filter.text); |
| } |
| let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation"); |
| result.elemhideemulation = []; |
| - for (let filterText of elemHideEmulation.filters) |
| + for (let {text: filterText} of elemHideEmulation.knownFilters) |
| result.elemhideemulation.push(filterText); |
| let types = ["blacklist", "whitelist", "elemhide", "elemhideexception", |
| "elemhideemulation"]; |
| for (let type of types) |
| { |
| if (!(type in expected)) |
| expected[type] = []; |