| OLD | NEW |
| 1 Tests various use cases when cloning MessagePorts. | 1 Tests various use cases when cloning MessagePorts. |
| 2 | 2 |
| 3 Should be a series of SUCCESS messages, followed with DONE. | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 SUCCESS: Posting port to itself: InvalidStateError: An attempt was made to use a
n object that is not, or is no longer, usable. | |
| 6 SUCCESS: Posting entangled port: InvalidStateError: An attempt was made to use a
n object that is not, or is no longer, usable. | |
| 7 SUCCESS: Posting cloned port. | |
| 8 SUCCESS: Posted messages to cloned port. | |
| 9 SUCCESS: Cloned both endpoints of a channel. | |
| 10 SUCCESS: Got closed port with event message closed | |
| 11 DONE | |
| 12 | 5 |
| 6 PASS channel.port1.postMessage('msg', [channel.port1]) threw exception DataClone
Error: An object could not be cloned.. |
| 7 PASS channel.port1.postMessage('msg', [channel.port2]) threw exception DataClone
Error: An object could not be cloned.. |
| 8 PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataClon
eError: An object could not be cloned.. |
| 9 PASS testEvent.ports.length is 1 |
| 10 PASS parseInt(testEvent.data) is 1 |
| 11 PASS parseInt(testEvent.data) is 2 |
| 12 PASS parseInt(testEvent.data) is 3 |
| 13 PASS Posted messages to cloned port. |
| 14 PASS testEvent.data is 'testme' |
| 15 PASS testEvent.ports is not null |
| 16 PASS testEvent.ports.length is 1 |
| 17 PASS testEvent.data is 'closed' |
| 18 PASS successfullyParsed is true |
| 19 |
| 20 TEST COMPLETE |
| 21 |
| OLD | NEW |