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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html

Issue 2495873002: Manually import wpt@359815a0ff565cb6ca89349f6e9e154789267d8b (Closed)
Patch Set: Add Crash/Timeout expectation for bitmaprenderer-as-imagesource.html Created 4 years, 1 month 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/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html
index a031ee2edf3c7d5d387f497f6d1067cd56974334..2ee98084680ab78e78bb9b6c673497c64e86ab26 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/postmessage-to-client.https.html
@@ -29,11 +29,14 @@ t.step(function() {
var expected = ['Sending message via clients'];
function onMessage(e) {
+ assert_equals(e.constructor, frame.contentWindow.MessageEvent,
+ 'message events should use MessageEvent interface.');
assert_equals(e.bubbles, false, 'message events should not bubble.');
- assert_equals(e.cancelable, false, 'message events should not be cancelable.');
- assert_equals(e.origin, host_info['HTTPS_ORIGIN'], 'message event\'s origin should be set correctly.');
-// XXXkhuey fixme!
-// assert_equals(e.source, sw.controller, 'source should be ServiceWorker.');
+ assert_equals(e.cancelable, false,
+ 'message events should not be cancelable.');
+ assert_equals(e.origin, host_info['HTTPS_ORIGIN'],
+ 'message event\'s origin should be set correctly.');
+ assert_equals(e.source, sw.controller, 'source should be ServiceWorker.');
var message = e.data;
if (message === 'quit') {

Powered by Google App Engine
This is Rietveld 408576698