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

Unified Diff: test/elemHide.js

Issue 29354864: Issue 4223 - Migrate some more of adblockplustests (Closed)
Patch Set: Addressed feedback Created Oct. 4, 2016, 12:04 p.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/elemHide.js
diff --git a/test/elemHide.js b/test/elemHide.js
index 85670d889619c84e2a07e24d3a1a6c65be0afe02..89d596dc3a0b6d900f41112d4cdd37dfe821aa67 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("../lib/elemHide"),
+ {Filter} = sandboxedRequire("../lib/filterClasses")
+ );
+
+ callback();
+};
exports.testGetSelectorsForDomain = function(test)
{
« no previous file with comments | « test/domainRestrictions.js ('k') | test/filterClasses.js » ('j') | test_runner.js » ('J')

Powered by Google App Engine
This is Rietveld