| Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js
|
| index caf3d8a6ad61d84300160b7801a7e8f07e9f99ae..5ea64609b0a9f8b44848cf837309cf263b63112e 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-openwindow.js
|
| @@ -81,11 +81,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');
|
| - });
|
| + }));
|
| }
|
| };
|
|
|