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

Unified Diff: LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.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-focus.html
diff --git a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html
index ee184f685f60ec8b77f0485cac56141ee7f8091a..7816ef746021b02831e0b3d83d35ecde68d6109e 100644
--- a/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.html
+++ b/LayoutTests/http/tests/serviceworker/chromium/notificationclick-can-focus.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