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

Unified Diff: qunit/common.js

Issue 29452181: Noissue - Merge current tip to Edge bookmark (Closed)
Patch Set: Created May 30, 2017, 3:49 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
« 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
===================================================================
--- a/qunit/common.js
+++ b/qunit/common.js
@@ -1,6 +1,6 @@
/*
* This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-2016 Eyeo GmbH
+ * Copyright (C) 2006-2017 eyeo GmbH
*
* Adblock Plus is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
@@ -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 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