Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js |
index d2cbc78a961e0b5c05acd9cf9c41363b37b59bdb..bc4ef1cb3785249dd57f8dad633e039c9a2ae116 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js |
@@ -80,11 +80,11 @@ var TESTS = [ |
self.onmessage = function(e) { |
if (e.data == 'start') { |
- initialize().then(runNextTestOrQuit); |
+ e.waitUntil(initialize().then(runNextTestOrQuit)); |
} else { |
- initialize().then(function() { |
+ e.waitUntil(initialize().then(function() { |
self.postMessage('received unexpected message'); |
self.postMessage('quit'); |
- }); |
+ })); |
} |
}; |