Index: test/subscriptionClasses.js |
=================================================================== |
--- a/test/subscriptionClasses.js |
+++ b/test/subscriptionClasses.js |
@@ -116,25 +116,28 @@ exports.testDefaultSubscriptionIDs = fun |
exports.testSubscriptionDefaults = function(test) |
{ |
let tests = [ |
["blocking", "test"], |
["whitelist", "@@test"], |
["elemhide", "##test"], |
["elemhide", "#@#test"], |
["elemhide", "foo##[-abp-properties='foo']"], |
- ["blocking", "!test"], |
- ["blocking", "/??/"], |
+ ["", "!test"], |
+ ["", "/??/"], |
["blocking whitelist", "test", "@@test"], |
["blocking elemhide", "test", "##test"] |
]; |
for (let [defaults, ...filters] of tests) |
{ |
- compareSubscription(test, "~user~" + filters.join("~"), ["url=~user~" + filters.join("~"), "defaults= " + defaults], subscription => |
+ let expected = ["url=~user~" + filters.join("~")]; |
+ if (defaults) |
+ expected.push("defaults= " + defaults); |
+ compareSubscription(test, "~user~" + filters.join("~"), expected, subscription => |
{ |
for (let text of filters) |
{ |
let filter = Filter.fromText(text); |
subscription.makeDefaultFor(filter); |
filter.delete(); |
} |
}); |