Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js

Issue 1211253007: ServiceWorker: Add LayoutTest for WindowClient.navigate(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js
diff --git a/LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js b/LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js
index 3f81a544f3f02181e3d460f994b63af897902da1..4b708ecff874f99f53f39b30fedf9be4561680a3 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js
+++ b/LayoutTests/http/tests/serviceworker/chromium/resources/sw-test-helpers.js
@@ -39,13 +39,13 @@ self.postMessage = function(msg) {
// stops.
// In order for that call to succeed, the script MUST have a TESTS array
// defined.
-self.runNextTestOrQuit = function() {
+self.runNextTestOrQuit = function(data) {
++currentTest;
if (currentTest >= TESTS.length) {
client.postMessage('quit');
return;
}
- TESTS[currentTest]();
+ TESTS[currentTest](data);
}
// This method will use the |client| in order to synthesize a notificationclick

Powered by Google App Engine
This is Rietveld 408576698