Index: test/elemHide.js |
diff --git a/test/elemHide.js b/test/elemHide.js |
index 85670d889619c84e2a07e24d3a1a6c65be0afe02..c85e48cc5b2fd8979713386c87b604d94252ca1e 100644 |
--- a/test/elemHide.js |
+++ b/test/elemHide.js |
@@ -17,15 +17,21 @@ |
"use strict"; |
-GLOBAL.Ci = {}; |
-GLOBAL.Cu = { |
- import: function() |
- { |
- } |
-}; |
+let {createSandbox} = require("common"); |
+ |
+let ElemHide = null; |
+let Filter = null; |
-let {ElemHide} = require("elemHide"); |
-let {Filter} = require("filterClasses"); |
+exports.setUp = function(callback) |
+{ |
+ let sandboxedRequire = createSandbox(); |
+ ( |
+ {ElemHide} = sandboxedRequire("elemHide"), |
+ {Filter} = sandboxedRequire("filterClasses") |
+ ); |
+ |
+ callback(); |
+}; |
exports.testGetSelectorsForDomain = function(test) |
{ |