1 This test checks the various use cases around sending multiple ports through Worker.postMessage
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS worker.postMessage("null port", [channel3.port1, null, channel3.port2]) threw exception Error: DATA_CLONE_ERR: DOM Exception 25.
7 PASS worker.postMessage("notAPort", [channel3.port1, {}, channel3.port2]) threw exception TypeError: Type error.
8 PASS worker.postMessage("notAnArray", channel3.port1) threw exception TypeError: Type error.
9 PASS worker.postMessage("notASequence", [{length: 3}]) threw exception TypeError: Type error.
10 PASS event.ports is non-null and zero length when no port sent
11 PASS event.ports is non-null and zero length when empty array sent
12 PASS event.ports contains two ports when two ports sent
13 PASS event.ports contains two ports when two ports re-sent after error