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

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

Issue 1301953002: WebMessaging: Show a warning when MessagePort attempts to send a transferable ArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add const / update test expectation Created 5 years, 4 months 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 | Source/bindings/core/v8/SerializedScriptValue.h » ('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: MessagePort cannot send an ArrayBuffer as a transferable object yet. See http://crbug.com/334408
2 CONSOLE WARNING: MessagePort cannot send an ArrayBuffer as a transferable object yet. See http://crbug.com/334408
1 Tests various use cases when cloning MessagePorts. 3 Tests various use cases when cloning MessagePorts.
2 4
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 6
5 7
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.. 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..
7 Posting port to entangled pair neuters the port and does nothing else: 9 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.. 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..
9 Posting a neutered ArrayBuffer should throw. 11 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.. 12 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. 13 Posting a neutered ArrayBufferView should throw.
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.. 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..
13 PASS channel.port1.postMessage(uint16Array, []) threw exception DataCloneError: Failed to execute 'postMessage' on 'MessagePort': An ArrayBuffer is neutered and could not be cloned.. 15 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.. 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..
15 PASS testEvent.ports.length is 1 17 PASS testEvent.ports.length is 1
16 PASS parseInt(testEvent.data) is 1 18 PASS parseInt(testEvent.data) is 1
17 PASS parseInt(testEvent.data) is 2 19 PASS parseInt(testEvent.data) is 2
18 PASS parseInt(testEvent.data) is 3 20 PASS parseInt(testEvent.data) is 3
19 PASS Posted messages to cloned port. 21 PASS Posted messages to cloned port.
20 PASS testEvent.data is 'testme' 22 PASS testEvent.data is 'testme'
21 PASS testEvent.ports is not null 23 PASS testEvent.ports is not null
22 PASS testEvent.ports.length is 1 24 PASS testEvent.ports.length is 1
23 PASS testEvent.data is 'closed' 25 PASS testEvent.data is 'closed'
24 PASS successfullyParsed is true 26 PASS successfullyParsed is true
25 27
26 TEST COMPLETE 28 TEST COMPLETE
27 29
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/SerializedScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698