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

Unified Diff: qunit/common.js

Issue 29374674: Issue 4864 - Start using ESLint for adblockpluschrome (Closed)
Patch Set: Addressed more feedback Created March 31, 2017, 8:23 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
« no previous file with comments | « qunit/.eslintrc.json ('k') | qunit/tests/cssEscaping.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/common.js
diff --git a/qunit/common.js b/qunit/common.js
index ca363df4f264cfcfc64964932cfb685ecc05458f..00849c7de7f85344bb8b508b64b7dad1306fb58f 100644
--- a/qunit/common.js
+++ b/qunit/common.js
@@ -17,14 +17,12 @@
"use strict";
-importAll("filterClasses", this);
-importAll("subscriptionClasses", this);
-importAll("matcher", this);
-importAll("filterStorage", this);
-importAll("filterNotifier", this);
-importAll("elemHide", this);
-importAll("prefs", this);
-importAll("utils", this);
+const {FilterStorage} = require("filterStorage");
+const {Subscription} = require("subscriptionClasses");
+const {Filter} = require("filterClasses");
+const {defaultMatcher} = require("matcher");
+const {ElemHide} = require("elemHide");
+const {Prefs} = require("prefs");
function prepareFilterComponents(keepListeners)
{
@@ -41,23 +39,6 @@ function restoreFilterComponents()
{
}
-function preparePrefs()
-{
- this._pbackup = Object.create(null);
- for (let pref in Prefs)
- {
- let value = Prefs[pref];
- this._pbackup[pref] = value;
- }
- Prefs.enabled = true;
-}
-
-function restorePrefs()
-{
- for (let pref in this._pbackup)
- Prefs[pref] = this._pbackup[pref];
-}
-
function executeFirstRunActions()
{
}
« no previous file with comments | « qunit/.eslintrc.json ('k') | qunit/tests/cssEscaping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld