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() threw exception TypeError: Failed to execute 'p
ostMessage' on 'MessagePort': 1 argument required, but only 0 present.. |
6 PASS channel.port1.postMessage("same port", [channel.port1]) threw exception Dat
aCloneError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 c
ontains the source port.. | 7 PASS channel.port1.postMessage("same port", [channel.port1]) threw exception Dat
aCloneError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 c
ontains the source port.. |
7 PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port
2]) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort':
Value at index 1 is an untransferable 'null' value.. | 8 PASS channel.port1.postMessage("null port", [channel3.port1, null, channel3.port
2]) threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort':
Value at index 1 is an untransferable 'null' value.. |
8 PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2])
threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Va
lue at index 1 does not have a transferable type.. | 9 PASS channel.port1.postMessage("notAPort", [channel3.port1, {}, channel3.port2])
threw exception TypeError: Failed to execute 'postMessage' on 'MessagePort': Va
lue at index 1 does not have a transferable type.. |
9 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1
]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePo
rt': Message port at index 1 is a duplicate of an earlier port.. | 10 PASS channel.port1.postMessage("duplicate port", [channel3.port1, channel3.port1
]) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePo
rt': Message port at index 1 is a duplicate of an earlier port.. |
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("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 Ty
peError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does
not have a transferable type.. | 12 PASS channel.port1.postMessage("notASequence", [{length: 3}]) threw exception Ty
peError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does
not have a transferable type.. |
12 PASS channel.port1.postMessage("duplicate buffer", [arrayBuffer, arrayBuffer]) t
hrew exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort':
ArrayBuffer at index 1 is a duplicate of an earlier ArrayBuffer.. | 13 PASS channel.port1.postMessage("duplicate buffer", [arrayBuffer, arrayBuffer]) t
hrew exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort':
ArrayBuffer at index 1 is a duplicate of an earlier ArrayBuffer.. |
13 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception
TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 is
an untransferable 'undefined' value.. | 14 PASS channel.port1.postMessage("largeSequence", largePortArray) threw exception
TypeError: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 is
an untransferable 'undefined' value.. |
14 PASS successfullyParsed is true | 15 PASS successfullyParsed is true |
15 | 16 |
16 TEST COMPLETE | 17 TEST COMPLETE |
17 PASS event.ports is non-null and zero length when no port sent | 18 PASS event.ports is non-null and zero length when no port sent |
18 PASS event.ports is non-null and zero length when empty array sent | 19 PASS event.ports is non-null and zero length when empty array sent |
19 PASS event.ports contains two ports when two ports sent | 20 PASS event.ports contains two ports when two ports sent |
20 PASS event.ports contains two ports when two ports re-sent after error | 21 PASS event.ports contains two ports when two ports re-sent after error |
21 PASS Sending host object has thrown DataCloneError: Failed to execute 'postMessa
ge' on 'MessagePort': An object could not be cloned. | 22 PASS Sending host object has thrown DataCloneError: Failed to execute 'postMessa
ge' on 'MessagePort': An object could not be cloned. |
22 PASS Sending host object has thrown DataCloneError: Failed to execute 'postMessa
ge' on 'MessagePort': An object could not be cloned. | 23 PASS Sending host object has thrown DataCloneError: Failed to execute 'postMessa
ge' on 'MessagePort': An object could not be cloned. |
23 PASS Sending Function object has thrown DataCloneError: Failed to execute 'postM
essage' on 'MessagePort': An object could not be cloned. | 24 PASS Sending Function object has thrown DataCloneError: Failed to execute 'postM
essage' on 'MessagePort': An object could not be cloned. |
24 PASS Sending Error object has thrown DataCloneError: Failed to execute 'postMess
age' on 'MessagePort': An object could not be cloned. | 25 PASS Sending Error object has thrown DataCloneError: Failed to execute 'postMess
age' on 'MessagePort': An object could not be cloned. |
25 PASS send-port: transferred one port | 26 PASS send-port: transferred one port |
26 PASS send-port-twice: transferred one port twice | 27 PASS send-port-twice: transferred one port twice |
27 PASS send-two-ports: transferred two ports | 28 PASS send-two-ports: transferred two ports |
28 | 29 |
29 TEST COMPLETE | 30 TEST COMPLETE |
30 | 31 |
OLD | NEW |