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

Unified Diff: test/subscriptionClasses.js

Issue 29946572: Issue 7094 - Keep subscription filters by text only (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Rebase Created Feb. 16, 2019, 3:10 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/filterStorage.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/subscriptionClasses.js
===================================================================
--- a/test/subscriptionClasses.js
+++ b/test/subscriptionClasses.js
@@ -60,25 +60,24 @@
}
let subscription2 = Subscription.fromObject(map);
test.equal(subscription.toString(), subscription2.toString(), url + " deserialization");
}
function compareSubscriptionFilters(test, subscription, expected)
{
test.deepEqual([...subscription.filterText()], expected);
- test.deepEqual([...subscription.filters()], expected.map(f$));
test.equal(subscription.filterCount, expected.length);
for (let i = 0; i < subscription.filterCount; i++)
- test.equal(subscription.filterAt(i).text, expected[i]);
+ test.equal(subscription.filterTextAt(i), expected[i]);
- test.ok(!subscription.filterAt(subscription.filterCount));
- test.ok(!subscription.filterAt(-1));
+ test.ok(!subscription.filterTextAt(subscription.filterCount));
+ test.ok(!subscription.filterTextAt(-1));
}
exports.testSubscriptionClassDefinitions = function(test)
{
test.equal(typeof Subscription, "function", "typeof Subscription");
test.equal(typeof SpecialSubscription, "function", "typeof SpecialSubscription");
test.equal(typeof RegularSubscription, "function", "typeof RegularSubscription");
test.equal(typeof ExternalSubscription, "function", "typeof ExternalSubscription");
« no previous file with comments | « test/filterStorage.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld