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

Unified Diff: LayoutTests/fast/events/constructors/message-event-constructor-expected.txt

Issue 23319002: Set MessageEvent.source to the newly created port for shared workers' connect events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test and assertions Created 7 years, 4 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/fast/events/constructors/message-event-constructor-expected.txt
diff --git a/LayoutTests/fast/events/constructors/message-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/message-event-constructor-expected.txt
index 5d656323d253c64754742a3baea081169e26d881..78da1a252251e7c4dafe17c894f4b313e0613c16 100644
--- a/LayoutTests/fast/events/constructors/message-event-constructor-expected.txt
+++ b/LayoutTests/fast/events/constructors/message-event-constructor-expected.txt
@@ -60,8 +60,10 @@ PASS new MessageEvent('eventType', { get lastEventId() { return 123; } }).lastEv
PASS new MessageEvent('eventType', { get lastEventId() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
PASS new MessageEvent('eventType', { source: window }).source is window
PASS new MessageEvent('eventType', { source: this }).source is this
+PASS new MessageEvent('eventType', { ports: [channel.port1], source: channel.port1 }).source is null
PASS new MessageEvent('eventType', { source: test_object }).source is null
PASS new MessageEvent('eventType', { source: document }).source is null
+PASS new MessageEvent('eventType', { source: document.body }).source is null
PASS new MessageEvent('eventType', { source: undefined }).source is null
PASS new MessageEvent('eventType', { source: null }).source is null
PASS new MessageEvent('eventType', { source: false }).source is null

Powered by Google App Engine
This is Rietveld 408576698