| OLD | NEW |
| 1 Tests various use cases when cloning MessagePorts. | 1 Tests various use cases when cloning MessagePorts. |
| 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('msg', [channel.port1]) threw exception DataClone
Error: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the array of
ports contains the source port.. | 6 PASS channel.port1.postMessage('msg', [channel.port1]) threw exception DataClone
Error: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the array of
ports contains the source port.. |
| 7 Posting port to entangled pair neuters the port and does nothing else: | 7 Posting port to entangled pair neuters the port and does nothing else: |
| 8 PASS channel2.port1.postMessage('msg', [channel.port2]) threw exception DataClon
eError: Failed to execute 'disentanglePorts' on 'MessagePort': Item #0 in the ar
ray of ports is already neutered.. | 8 PASS channel2.port1.postMessage('msg', [channel.port2]) threw exception DataClon
eError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the array o
f ports is already neutered.. |
| 9 PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataClon
eError: Failed to execute 'disentanglePorts' on 'MessagePort': Item #0 in the ar
ray of ports is already neutered.. | 9 PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataClon
eError: Failed to execute 'postMessage' on 'MessagePort': Item #0 in the array o
f ports is already neutered.. |
| 10 PASS testEvent.ports.length is 1 | 10 PASS testEvent.ports.length is 1 |
| 11 PASS parseInt(testEvent.data) is 1 | 11 PASS parseInt(testEvent.data) is 1 |
| 12 PASS parseInt(testEvent.data) is 2 | 12 PASS parseInt(testEvent.data) is 2 |
| 13 PASS parseInt(testEvent.data) is 3 | 13 PASS parseInt(testEvent.data) is 3 |
| 14 PASS Posted messages to cloned port. | 14 PASS Posted messages to cloned port. |
| 15 PASS testEvent.data is 'testme' | 15 PASS testEvent.data is 'testme' |
| 16 PASS testEvent.ports is not null | 16 PASS testEvent.ports is not null |
| 17 PASS testEvent.ports.length is 1 | 17 PASS testEvent.ports.length is 1 |
| 18 PASS testEvent.data is 'closed' | 18 PASS testEvent.data is 'closed' |
| 19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
| 20 | 20 |
| 21 TEST COMPLETE | 21 TEST COMPLETE |
| 22 | 22 |
| OLD | NEW |