OLD | NEW |
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("null port", [channel3.port1, null, channel3.port
2]) threw exception DataCloneError: An object could not be cloned.. | 7 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("notAPort", [channel3.port1, {}, channel3.port2])
threw exception DataCloneError: An object could not be cloned.. | 8 PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2])
threw exception DataCloneError: An object could not be cloned.. |
9 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1
]) threw exception DataCloneError: An object could not be cloned.. | 9 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1
]) threw exception DataCloneError: An object could not be cloned.. |
10 PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception Typ
eError: Failed to execute 'postMessage' on 'MessagePort': The 2nd argument is ne
ither an array, nor does it have indexed properties.. | 10 PASS channel.port1.postMessage("notAnArray", channel3.port1) threw exception Typ
eError: Failed to execute 'postMessage' on 'MessagePort': The 2nd argument is ne
ither an array, nor does it have indexed properties.. |
11 PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception Da
taCloneError: An object could not be cloned.. | 11 PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception Da
taCloneError: An object could not be cloned.. |
12 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception
DataCloneError: An object could not be cloned.. | 12 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception
DataCloneError: An object could not be cloned.. |
| 13 PASS successfullyParsed is true |
| 14 |
| 15 TEST COMPLETE |
13 PASS event.ports is non-null and zero length when no port sent | 16 PASS event.ports is non-null and zero length when no port sent |
14 PASS event.ports is non-null and zero length when empty array sent | 17 PASS event.ports is non-null and zero length when empty array sent |
15 PASS event.ports contains two ports when two ports sent | 18 PASS event.ports contains two ports when two ports sent |
16 PASS event.ports contains two ports when two ports re-sent after error | 19 PASS event.ports contains two ports when two ports re-sent after error |
17 PASS Sending host object has thrown DataCloneError: An object could not be clone
d. | 20 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. | 21 PASS Sending host object has thrown DataCloneError: An object could not be clone
d. |
19 PASS Sending Function object has thrown DataCloneError: An object could not be c
loned. | 22 PASS Sending Function object has thrown DataCloneError: An object could not be c
loned. |
20 PASS Sending Error object has thrown DataCloneError: An object could not be clon
ed. | 23 PASS Sending Error object has thrown DataCloneError: An object could not be clon
ed. |
21 PASS send-port: transferred one port | 24 PASS send-port: transferred one port |
22 PASS send-port-twice: transferred one port twice | 25 PASS send-port-twice: transferred one port twice |
23 PASS send-two-ports: transferred two ports | 26 PASS send-two-ports: transferred two ports |
24 | 27 |
25 TEST COMPLETE | 28 TEST COMPLETE |
26 | 29 |
OLD | NEW |