Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test/filterListener.js

Issue 29355872: Issue 4223 - Adapt synchronizer tests to work in adblockpluscore repository (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Converted former loops into separate tests Created Oct. 5, 2016, 9:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/filterListener.js
===================================================================
--- a/test/filterListener.js
+++ b/test/filterListener.js
@@ -24,18 +24,20 @@ let FilterStorage = null;
let Subscription = null;
let Filter = null;
let defaultMatcher = null;
let SpecialSubscription = null;
exports.setUp = function(callback)
{
sandboxedRequire = createSandbox({
- elemHide: ["filterByKey", "exceptions"],
- cssRules: ["filters"]
+ extraExports: {
+ elemHide: ["filterByKey", "exceptions"],
+ cssRules: ["filters"]
+ }
});
// 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");
(
{FilterStorage} = sandboxedRequire("../lib/filterStorage"),
« no previous file with comments | « test/_common.js ('k') | test/stub-modules/info.js » ('j') | test/synchronizer.js » ('J')

Powered by Google App Engine
This is Rietveld