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

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

Issue 30673002: More informative error messages for non-Transferables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More informative error messages for non-Transferables. Created 7 years, 2 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 unified diff | Download patch
OLDNEW
1 This test checks the various use cases around sending multiple ports through Mes sagePort.postMessage 1 This test checks the various use cases around sending multiple ports through Mes sagePort.postMessage
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS channel.port1.postMessage("same port", [channel.port1]) threw exception Dat aCloneError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the ar ray of ports contains the source port.. 6 PASS channel.port1.postMessage("same port", [channel.port1]) threw exception Dat aCloneError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the ar ray of ports contains the source port..
7 PASS channel.port1.postMessage("entangled port", [channel.port2]) threw exceptio n DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in t he array of ports contains the target port.. 7 PASS channel.port1.postMessage("entangled port", [channel.port2]) threw exceptio n DataCloneError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in t he array of ports contains the target port..
8 PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port 2]) threw exception DataCloneError: An object could not be cloned.. 8 PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port 2]) threw exception DataCloneError: An object could not be cloned..
9 PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception DataCloneError: An object could not be cloned.. 9 PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception DataCloneError: An object could not be cloned..
10 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1 ]) threw exception DataCloneError: An object could not be cloned.. 10 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1 ]) threw exception DataCloneError: An object could not be cloned..
11 PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception Typ eError: Type error. 11 PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception Typ eError: Failed to execute 'postMessage' on 'MessagePort': Second argument is nei ther an array, nor does it have indexed properties..
12 PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception Da taCloneError: An object could not be cloned.. 12 PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception Da taCloneError: An object could not be cloned..
13 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception DataCloneError: An object could not be cloned.. 13 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception DataCloneError: An object could not be cloned..
14 PASS event.ports is non-null and zero length when no port sent 14 PASS event.ports is non-null and zero length when no port sent
15 PASS event.ports is non-null and zero length when empty array sent 15 PASS event.ports is non-null and zero length when empty array sent
16 PASS event.ports contains two ports when two ports sent 16 PASS event.ports contains two ports when two ports sent
17 PASS event.ports contains two ports when two ports re-sent after error 17 PASS event.ports contains two ports when two ports re-sent after error
18 PASS Sending host object has thrown DataCloneError: An object could not be clone d. 18 PASS Sending host object has thrown DataCloneError: An object could not be clone d.
19 PASS Sending host object has thrown DataCloneError: An object could not be clone d. 19 PASS Sending host object has thrown DataCloneError: An object could not be clone d.
20 PASS Sending Function object has thrown DataCloneError: An object could not be c loned. 20 PASS Sending Function object has thrown DataCloneError: An object could not be c loned.
21 PASS Sending Error object has thrown DataCloneError: An object could not be clon ed. 21 PASS Sending Error object has thrown DataCloneError: An object could not be clon ed.
22 PASS send-port: transferred one port 22 PASS send-port: transferred one port
23 PASS send-port-twice: transferred one port twice 23 PASS send-port-twice: transferred one port twice
24 PASS send-two-ports: transferred two ports 24 PASS send-two-ports: transferred two ports
25 25
26 TEST COMPLETE 26 TEST COMPLETE
27 27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698