| Index: test/synchronizer.js |
| =================================================================== |
| --- a/test/synchronizer.js |
| +++ b/test/synchronizer.js |
| @@ -509,33 +509,33 @@ |
| test.equal(subscription.lastCheck * MILLIS_IN_SECOND, startTime + (27 + initialDelay) * MILLIS_IN_HOUR, "lastCheck after download error"); |
| test.equal(subscription.errors, 2, "errors after download error"); |
| }).catch(unexpectedError.bind(test)).then(() => test.done()); |
| }; |
| exports.testSpecialCommentOrdering = function(test) |
| { |
| let subscription = Subscription.fromURL("http://example.com/subscription"); |
| - FilterStorage.addSubscription(subscription); |
| + filterStorage.addSubscription(subscription); |
| this.registerHandler("/subscription", metadata => |
| { |
| return [Cr.NS_OK, 200, "[Adblock]\n! Special Comment: x\n!foo\n! Title: foobar\nfoo\nbar"]; |
| }); |
| this.runScheduledTasks(1).then(() => |
| { |
| test.equal(subscription.title, "http://example.com/subscription", "make sure title was not found"); |
| }).catch(unexpectedError.bind(test)).then(() => test.done()); |
| }; |
| exports.testUnknownSpecialComments = function(test) |
| { |
| let subscription = Subscription.fromURL("http://example.com/subscription"); |
| - FilterStorage.addSubscription(subscription); |
| + filterStorage.addSubscription(subscription); |
| this.registerHandler("/subscription", metadata => |
| { |
| // To test allowing unknown special comments like `! :`, `!!@#$%^&*() : `, and `! Some Unknown Comment : ` |
| return [Cr.NS_OK, 200, "[Adblock]\n! :\n! !@#$%^&*() :\n! Some Unknown Comment :\n! Title: foobar\nfoo\nbar"]; |
| }); |
| this.runScheduledTasks(1).then(() => |