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

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

Issue 1022283002: Throw TypeError if value conversion to transferable fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add more tests for TypeError throwing Created 5 years, 9 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 258755d3a8d931e953ddb036a472b710df88355b..1359e9eb99f5a1e2f679ed9d5cfc69aec9b8cd58 100644
--- a/LayoutTests/fast/events/message-port-multi-expected.txt
+++ b/LayoutTests/fast/events/message-port-multi-expected.txt
@@ -4,13 +4,13 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
PASS channel.port1.postMessage("same port", [channel.port1]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 contains the source port..
-PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Value at index 1 is an untransferable 'null' value..
-PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Value at index 1 does not have a transferable type..
+PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 1 is an untransferable 'null' value..
+PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 1 does not have a transferable type..
PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Message port at index 1 is a duplicate of an earlier port..
PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': The 2nd argument is neither an array, nor does it have indexed properties..
-PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have a transferable type..
+PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have a transferable type..
PASS channel.port1.postMessage("duplicate buffer", [arrayBuffer, arrayBuffer]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': ArrayBuffer at index 1 is a duplicate of an earlier ArrayBuffer..
-PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 is an untransferable 'undefined' value..
+PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 is an untransferable 'undefined' value..
PASS successfullyParsed is true
TEST COMPLETE
« 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