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

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

Issue 22915005: MessageEvent constructor should accept a MessagePort as source (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/message-event-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/constructors/message-event-constructor.html
diff --git a/LayoutTests/fast/events/constructors/message-event-constructor.html b/LayoutTests/fast/events/constructors/message-event-constructor.html
index 4e6e5ee4dcd1f3376a98c270029ad72080334c44..c23fbe3fd82bc17f12030874f7e26d6d380fb188 100644
--- a/LayoutTests/fast/events/constructors/message-event-constructor.html
+++ b/LayoutTests/fast/events/constructors/message-event-constructor.html
@@ -73,9 +73,9 @@ shouldBe("new MessageEvent('eventType', { source: this }).source", "this");
// MessagePort objects.
var channel = new MessageChannel();
-shouldBe("new MessageEvent('eventType', { ports: [channel.port1], source: channel.port1 }).source", "null");
+shouldBe("new MessageEvent('eventType', { ports: [channel.port1], source: channel.port1 }).source", "channel.port1");
-// Non-window objects.
+// Unacceptable source objects (not a Window or a MessagePort).
shouldBe("new MessageEvent('eventType', { source: test_object }).source", "null");
shouldBe("new MessageEvent('eventType', { source: document }).source", "null");
shouldBe("new MessageEvent('eventType', { source: document.body }).source", "null");
« no previous file with comments | « no previous file | LayoutTests/fast/events/constructors/message-event-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698