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': Port at index 0 contain
s the source port.. | 6 PASS channel.port1.postMessage('msg', [channel.port1]) threw exception DataClone
Error: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 contain
s 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 'postMessage' on 'MessagePort': Port at index 0 is alr
eady neutered.. | 8 PASS channel2.port1.postMessage('msg', [channel.port2]) threw exception DataClon
eError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 is alr
eady neutered.. |
9 Posting a neutered ArrayBuffer should throw. | 9 Posting a neutered ArrayBuffer should throw. |
10 PASS channel.port1.postMessage(arrayBuffer, []) threw exception DataCloneError:
Failed to execute 'postMessage' on 'MessagePort': An ArrayBuffer is neutered and
could not be cloned.. | 10 PASS channel.port1.postMessage(arrayBuffer, []) threw exception DataCloneError:
Failed to execute 'postMessage' on 'MessagePort': An ArrayBuffer is neutered and
could not be cloned.. |
11 Posting a neutered ArrayBufferView should throw. | 11 Posting a neutered ArrayBufferView should throw. |
12 PASS channel.port1.postMessage('msg', [uint16Array]) threw exception DataCloneEr
ror: Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not
have a transferable type.. | 12 PASS channel.port1.postMessage('msg', [uint16Array]) threw exception TypeError:
Failed to execute 'postMessage' on 'MessagePort': Value at index 0 does not have
a transferable type.. |
13 PASS channel.port1.postMessage(uint16Array, []) threw exception DataCloneError:
Failed to execute 'postMessage' on 'MessagePort': An ArrayBuffer is neutered and
could not be cloned.. | 13 PASS channel.port1.postMessage(uint16Array, []) threw exception DataCloneError:
Failed to execute 'postMessage' on 'MessagePort': An ArrayBuffer is neutered and
could not be cloned.. |
14 PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataClon
eError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 is alr
eady neutered.. | 14 PASS channel.port1.postMessage('msg', [channel2.port1]) threw exception DataClon
eError: Failed to execute 'postMessage' on 'MessagePort': Port at index 0 is alr
eady neutered.. |
15 PASS testEvent.ports.length is 1 | 15 PASS testEvent.ports.length is 1 |
16 PASS parseInt(testEvent.data) is 1 | 16 PASS parseInt(testEvent.data) is 1 |
17 PASS parseInt(testEvent.data) is 2 | 17 PASS parseInt(testEvent.data) is 2 |
18 PASS parseInt(testEvent.data) is 3 | 18 PASS parseInt(testEvent.data) is 3 |
19 PASS Posted messages to cloned port. | 19 PASS Posted messages to cloned port. |
20 PASS testEvent.data is 'testme' | 20 PASS testEvent.data is 'testme' |
21 PASS testEvent.ports is not null | 21 PASS testEvent.ports is not null |
22 PASS testEvent.ports.length is 1 | 22 PASS testEvent.ports.length is 1 |
23 PASS testEvent.data is 'closed' | 23 PASS testEvent.data is 'closed' |
24 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
25 | 25 |
26 TEST COMPLETE | 26 TEST COMPLETE |
27 | 27 |
OLD | NEW |