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

Unified Diff: LayoutTests/fast/events/message-port-clone-expected.txt

Issue 19765010: postMessage() should throw a DataCloneError on invalid transferables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/message-port-clone-expected.txt
diff --git a/LayoutTests/fast/events/message-port-clone-expected.txt b/LayoutTests/fast/events/message-port-clone-expected.txt
index 056cc2fba8caa1ea2c71446932ccf9334cc7f5ce..d27521b9dc0006d0da9d5dab8c48cc6ab7a669f6 100644
--- a/LayoutTests/fast/events/message-port-clone-expected.txt
+++ b/LayoutTests/fast/events/message-port-clone-expected.txt
@@ -1,12 +1,21 @@
Tests various use cases when cloning MessagePorts.
-Should be a series of SUCCESS messages, followed with DONE.
-
-SUCCESS: Posting port to itself: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
-SUCCESS: Posting entangled port: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable.
-SUCCESS: Posting cloned port.
-SUCCESS: Posted messages to cloned port.
-SUCCESS: Cloned both endpoints of a channel.
-SUCCESS: Got closed port with event message closed
-DONE
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS channel.port1.postMessage('msg', [channel.port1]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage('msg', [channel.port2]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataCloneError: An object could not be cloned..
+PASS testEvent.ports.length is 1
+PASS parseInt(testEvent.data) is 1
+PASS parseInt(testEvent.data) is 2
+PASS parseInt(testEvent.data) is 3
+PASS Posted messages to cloned port.
+PASS testEvent.data is 'testme'
+PASS testEvent.ports is not null
+PASS testEvent.ports.length is 1
+PASS testEvent.data is 'closed'
+PASS successfullyParsed is true
+
+TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/events/message-port-clone.html ('k') | LayoutTests/fast/events/message-port-multi-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698