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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/chromium/resources/notificationclick-can-focus.js

Issue 1668473002: ServiceWorker: Wait for the completion of async tasks on ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: 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');
- });
+ }));
}
};

Powered by Google App Engine
This is Rietveld 408576698