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

Unified Diff: test/filterStorage.js

Issue 30013628: Issue 7029 - Remove subscriptions property of Filter object (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Feb. 24, 2019, 1:30 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
Index: test/filterStorage.js
===================================================================
--- a/test/filterStorage.js
+++ b/test/filterStorage.js
@@ -73,17 +73,17 @@
{
let result = [...filterStorage.subscriptions()].map(
subscription => [...subscription.filterText()]);
test.deepEqual(result, list, testMessage);
}
function compareFilterSubscriptions(test, testMessage, filter, list)
{
- let result = [...filter.subscriptions()].map(subscription => subscription.url);
+ let result = [...filterStorage.subscriptions(filter.text)].map(subscription => subscription.url);
let expected = list.map(subscription => subscription.url);
test.deepEqual(result, expected, testMessage);
}
exports.testAddingSubscriptions = function(test)
{
let subscription1 = Subscription.fromURL("http://test1/");
let subscription2 = Subscription.fromURL("http://test2/");

Powered by Google App Engine
This is Rietveld