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

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

Issue 19765010: postMessage() should throw a DataCloneError on invalid transferables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/message-port-clone.html ('k') | LayoutTests/fast/events/message-port-multi-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698