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

Unified Diff: test/filterStorage.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 | « test/filterNotifier.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/filterStorage.js
===================================================================
--- a/test/filterStorage.js
+++ b/test/filterStorage.js
@@ -15,50 +15,50 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
const {createSandbox} = require("./_common");
let Filter = null;
-let FilterNotifier = null;
+let filterNotifier = null;
let FilterStorage = null;
let Subscription = null;
exports.setUp = function(callback)
{
let sandboxedRequire = createSandbox();
sandboxedRequire("../lib/filterListener");
(
{Filter} = sandboxedRequire("../lib/filterClasses"),
- {FilterNotifier} = sandboxedRequire("../lib/filterNotifier"),
+ {filterNotifier} = sandboxedRequire("../lib/filterNotifier"),
{FilterStorage} = sandboxedRequire("../lib/filterStorage"),
{Subscription} = sandboxedRequire("../lib/subscriptionClasses")
);
callback();
};
function addListener(listener)
{
let makeWrapper = name => (...args) => listener(name, ...args);
- FilterNotifier.on("subscription.added", makeWrapper("subscription.added"));
- FilterNotifier.on("subscription.removed",
+ filterNotifier.on("subscription.added", makeWrapper("subscription.added"));
+ filterNotifier.on("subscription.removed",
makeWrapper("subscription.removed"));
- FilterNotifier.on("subscription.moved", makeWrapper("subscription.moved"));
+ filterNotifier.on("subscription.moved", makeWrapper("subscription.moved"));
- FilterNotifier.on("filter.added", makeWrapper("filter.added"));
- FilterNotifier.on("filter.removed", makeWrapper("filter.removed"));
- FilterNotifier.on("filter.moved", makeWrapper("filter.moved"));
+ filterNotifier.on("filter.added", makeWrapper("filter.added"));
+ filterNotifier.on("filter.removed", makeWrapper("filter.removed"));
+ filterNotifier.on("filter.moved", makeWrapper("filter.moved"));
- FilterNotifier.on("filter.hitCount", makeWrapper("filter.hitCount"));
- FilterNotifier.on("filter.lastHit", makeWrapper("filter.lastHit"));
+ filterNotifier.on("filter.hitCount", makeWrapper("filter.hitCount"));
+ filterNotifier.on("filter.lastHit", makeWrapper("filter.lastHit"));
}
function compareSubscriptionList(test, testMessage, list,
knownSubscriptions = null)
{
let result = FilterStorage.subscriptions.map(subscription => subscription.url);
let expected = list.map(subscription => subscription.url);
test.deepEqual(result, expected, testMessage);
« no previous file with comments | « test/filterNotifier.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld