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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html

Issue 1130113006: ServiceWorker: Introduce ServiceWorkerMessageEvent to replace MessageEvent (3/3). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: make more tests pass Created 5 years, 6 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/notificationclick-can-openwindow.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html
index cf43755e92e4eebdf67dc8c7e00edb4e2becfe9c..bf5866c8c970baf6f2e1efcd11fd99e44169cb76 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-openwindow.html
@@ -18,7 +18,7 @@ t.step(function() {
.then(function() { return with_iframe(scope); })
.then(function(frame) {
var w = frame.contentWindow;
- w.onmessage = t.step_func(onMessage);
+ w.navigator.serviceWorker.onmessage = t.step_func(onMessage);
w.navigator.serviceWorker.controller.postMessage('start');
})
.catch(unreached_rejection(t));

Powered by Google App Engine
This is Rietveld 408576698