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

Unified Diff: test/synchronizer.js

Issue 29873570: Issue 6923 - Only parse metadata from special comments at the top of the file (Closed)
Patch Set: Addressed comment about tests Created Sept. 10, 2018, 6:50 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 | « lib/synchronizer.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/synchronizer.js
===================================================================
--- a/test/synchronizer.js
+++ b/test/synchronizer.js
@@ -259,7 +259,7 @@
this.registerHandler("/subscription", metadata =>
{
requests.push(this.getTimeOffset());
- return [Cr.NS_OK, 200, "[Adblock]\nfoo\n!Expires: " + currentTest.expiration + "\nbar"];
+ return [Cr.NS_OK, 200, "[Adblock]\n!foo\n!Expires: " + currentTest.expiration + "\nbar"];
});
this.randomResult = currentTest.randomResult;
@@ -319,7 +319,7 @@
this.registerHandler("/subscription", metadata =>
{
- return [Cr.NS_OK, 200, "[Adblock]\nfoo\n!Redirect: http://example.com/redirected\nbar"];
+ return [Cr.NS_OK, 200, "[Adblock]\n!foo\n!Redirect: http://example.com/redirected\nbar"];
});
let requests;
@@ -335,7 +335,7 @@
this.registerHandler("/redirected", metadata =>
{
requests.push(this.getTimeOffset());
- return [Cr.NS_OK, 200, "[Adblock]\nfoo\n! Expires: 8 hours\nbar"];
+ return [Cr.NS_OK, 200, "[Adblock]\n!foo\n! Expires: 8 hours\nbar"];
});
resetSubscription(subscription);
@@ -347,7 +347,7 @@
this.registerHandler("/redirected", metadata =>
{
- return [Cr.NS_OK, 200, "[Adblock]\nfoo\n!Redirect: http://example.com/subscription\nbar"];
+ return [Cr.NS_OK, 200, "[Adblock]\n!foo\n!Redirect: http://example.com/subscription\nbar"];
});
subscription = Subscription.fromURL("http://example.com/subscription");
« no previous file with comments | « lib/synchronizer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld