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

Unified Diff: test/filterNotifier.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Rebased Created March 10, 2017, 7:02 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 | « test/filterListener.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
diff --git a/test/filterNotifier.js b/test/filterNotifier.js
index 44d644b09cfdbcb0f891aacc2c80d194207b351a..2694f83af2046d117d56262138492071e5e2dd1a 100644
--- a/test/filterNotifier.js
+++ b/test/filterNotifier.js
@@ -17,7 +17,7 @@
"use strict";
-let {createSandbox} = require("./_common");
+const {createSandbox} = require("./_common");
let FilterNotifier = null;
@@ -91,9 +91,9 @@ exports.testAddingRemovingListeners = function(test)
exports.testRemovingListenersWhileBeingCalled = function(test)
{
- let listener1 = function()
+ let listener1 = function(...args)
{
- listeners[0].apply(this, arguments);
+ listeners[0](...args);
FilterNotifier.removeListener(listener1);
};
let listener2 = listeners[1];
« no previous file with comments | « test/filterListener.js ('k') | test/filterStorage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld