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

Unified Diff: LayoutTests/fast/events/message-port-multi-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-multi-expected.txt
diff --git a/LayoutTests/fast/events/message-port-multi-expected.txt b/LayoutTests/fast/events/message-port-multi-expected.txt
index e522833a200288c30a11582e410c68ec8a93b864..959336935bca71b8dc1711fe778279bf5c6dd16c 100644
--- a/LayoutTests/fast/events/message-port-multi-expected.txt
+++ b/LayoutTests/fast/events/message-port-multi-expected.txt
@@ -3,14 +3,14 @@ This test checks the various use cases around sending multiple ports through Mes
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS channel.port1.postMessage("same port", [channel.port1]) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS channel.port1.postMessage("entangled port", [channel.port2]) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception TypeError: Type error.
-PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1]) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS channel.port1.postMessage("same port", [channel.port1]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage("entangled port", [channel.port2]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1]) threw exception DataCloneError: An object could not be cloned..
PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception TypeError: Type error.
-PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception TypeError: Type error.
-PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception DataCloneError: An object could not be cloned..
+PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception DataCloneError: An object could not be cloned..
PASS event.ports is non-null and zero length when no port sent
PASS event.ports is non-null and zero length when empty array sent
PASS event.ports contains two ports when two ports sent
« no previous file with comments | « LayoutTests/fast/events/message-port-clone-expected.txt ('k') | LayoutTests/fast/events/resources/message-port-multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698