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

Unified Diff: test/filterNotifier.js

Issue 29868577: Issue 6891 - Rename FilterNotifier to filterNotifier (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Aug. 29, 2018, 2 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 | « lib/synchronizer.js ('k') | test/filterStorage.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterNotifier.js
===================================================================
--- a/test/filterNotifier.js
+++ b/test/filterNotifier.js
@@ -14,49 +14,49 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const {createSandbox} = require("./_common");
-let FilterNotifier = null;
+let filterNotifier = null;
exports.setUp = function(callback)
{
let sandboxedRequire = createSandbox();
(
- {FilterNotifier} = sandboxedRequire("../lib/filterNotifier")
+ {filterNotifier} = sandboxedRequire("../lib/filterNotifier")
);
callback();
};
let triggeredListeners = [];
let listeners = [
(...args) => triggeredListeners.push(["listener1", ...args]),
(...args) => triggeredListeners.push(["listener2", ...args]),
(...args) => triggeredListeners.push(["listener3", ...args])
];
function addListener(listener)
{
- FilterNotifier.on("foo", listener);
+ filterNotifier.on("foo", listener);
}
function removeListener(listener)
{
- FilterNotifier.off("foo", listener);
+ filterNotifier.off("foo", listener);
}
function compareListeners(test, testDescription, list)
{
let result1 = triggeredListeners = [];
- FilterNotifier.emit("foo", {bar: true});
+ filterNotifier.emit("foo", {bar: true});
let result2 = triggeredListeners = [];
for (let observer of list)
observer({bar: true});
test.deepEqual(result1, result2, testDescription);
}
« no previous file with comments | « lib/synchronizer.js ('k') | test/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld