Index: test/filterListener.js |
=================================================================== |
--- a/test/filterListener.js |
+++ b/test/filterListener.js |
@@ -25,17 +25,17 @@ |
let Filter = null; |
let defaultMatcher = null; |
let SpecialSubscription = null; |
exports.setUp = function(callback) |
{ |
sandboxedRequire = createSandbox({ |
extraExports: { |
- elemHide: ["knownFilters"], |
+ elemHide: ["knownFilterText"], |
elemHideEmulation: ["filters"], |
elemHideExceptions: ["knownExceptions"] |
} |
}); |
// 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"); |
@@ -78,18 +78,18 @@ |
} |
} |
} |
result[type] = filters; |
} |
let elemHide = sandboxedRequire("../lib/elemHide"); |
result.elemhide = []; |
- for (let filter of elemHide.knownFilters) |
- result.elemhide.push(filter.text); |
+ for (let filterText of elemHide.knownFilterText) |
+ result.elemhide.push(filterText); |
let elemHideExceptions = sandboxedRequire("../lib/elemHideExceptions"); |
result.elemhideexception = []; |
for (let exception of elemHideExceptions.knownExceptions) |
result.elemhideexception.push(exception.text); |
let elemHideEmulation = sandboxedRequire("../lib/elemHideEmulation"); |
result.elemhideemulation = []; |