| OLD | NEW |
| 1 This test checks the various use cases around sending multiple ports through Wor
ker.postMessage | 1 This test checks the various use cases around sending multiple ports through Wor
ker.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 worker.postMessage("null port", [channel3.port1, null, channel3.port2]) thr
ew exception DataCloneError: An object could not be cloned.. | 6 PASS worker.postMessage("null port", [channel3.port1, null, channel3.port2]) thr
ew exception DataCloneError: Failed to execute 'postMessage' on 'Worker': Value
at index 1 is an untransferable 'null' value.. |
| 7 PASS worker.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw
exception DataCloneError: An object could not be cloned.. | 7 PASS worker.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw
exception DataCloneError: Failed to execute 'postMessage' on 'Worker': Value at
index 1 does not have a transferable type.. |
| 8 PASS worker.postMessage("notAnArray", channel3.port1) threw exception TypeError:
Failed to execute 'postMessage' on 'Worker': The 2nd argument is neither an arr
ay, nor does it have indexed properties.. | 8 PASS worker.postMessage("notAnArray", channel3.port1) threw exception TypeError:
Failed to execute 'postMessage' on 'Worker': The 2nd argument is neither an arr
ay, nor does it have indexed properties.. |
| 9 PASS worker.postMessage("notASequence", [{length: 3}]) threw exception DataClone
Error: An object could not be cloned.. | 9 PASS worker.postMessage("notASequence", [{length: 3}]) threw exception DataClone
Error: Failed to execute 'postMessage' on 'Worker': Value at index 0 does not ha
ve a transferable type.. |
| 10 PASS successfullyParsed is true | 10 PASS successfullyParsed is true |
| 11 | 11 |
| 12 TEST COMPLETE | 12 TEST COMPLETE |
| 13 PASS event.ports is non-null and zero length when no port sent | 13 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 | 14 PASS event.ports is non-null and zero length when empty array sent |
| 15 PASS event.ports contains two ports when two ports sent | 15 PASS event.ports contains two ports when two ports sent |
| 16 PASS event.ports contains two ports when two ports re-sent after error | 16 PASS event.ports contains two ports when two ports re-sent after error |
| 17 | 17 |
| 18 TEST COMPLETE | 18 TEST COMPLETE |
| 19 | 19 |
| OLD | NEW |