Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/message-port-clone-expected.txt

Issue 2414333003: WebMessaging: Send transferable ArrayBuffers by copy-and-neuter semantics (Closed)
Patch Set: fix tests Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/message-port-transferables.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CONSOLE WARNING: line 32: MessagePort cannot send an ArrayBuffer as a transferab le object yet. See http://crbug.com/334408
2 CONSOLE WARNING: line 41: MessagePort cannot send an ArrayBuffer as a transferab le object yet. See http://crbug.com/334408
3 Tests various use cases when cloning MessagePorts. 1 Tests various use cases when cloning MessagePorts.
4 2
5 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 ".
6 4
7 5
8 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..
9 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:
10 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..
11 Posting a neutered ArrayBuffer should throw. 9 Posting a neutered ArrayBuffer should throw.
12 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..
13 Posting a neutered ArrayBufferView should throw. 11 Posting a neutered ArrayBufferView should throw.
14 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.. 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..
15 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..
16 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..
17 PASS testEvent.ports.length is 1 15 PASS testEvent.ports.length is 1
18 PASS parseInt(testEvent.data) is 1 16 PASS parseInt(testEvent.data) is 1
19 PASS parseInt(testEvent.data) is 2 17 PASS parseInt(testEvent.data) is 2
20 PASS parseInt(testEvent.data) is 3 18 PASS parseInt(testEvent.data) is 3
21 PASS Posted messages to cloned port. 19 PASS Posted messages to cloned port.
22 PASS testEvent.data is 'testme' 20 PASS testEvent.data is 'testme'
23 PASS testEvent.ports is not null 21 PASS testEvent.ports is not null
24 PASS testEvent.ports.length is 1 22 PASS testEvent.ports.length is 1
25 PASS testEvent.data is 'closed' 23 PASS testEvent.data is 'closed'
26 PASS successfullyParsed is true 24 PASS successfullyParsed is true
27 25
28 TEST COMPLETE 26 TEST COMPLETE
29 27
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/message-port-transferables.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698