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 |