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

Side by Side Diff: LayoutTests/fast/dom/Window/window-postmessage-args-expected.txt

Issue 30673002: More informative error messages for non-Transferables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More informative error messages for non-Transferables. Created 7 years, 2 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
OLDNEW
1 Test that the second argument of window.postMessage is ignored or triggers an er ror if it is not a message port. You should see PASS message '1' through '7', fo llowed by 'done', with messages 4-7 received below. 1 Test that the second argument of window.postMessage is ignored or triggers an er ror if it is not a message port. You should see PASS message '1' through '7', fo llowed by 'done', with messages 4-7 received below.
2 2
3 PASS: Posting message ('1', 1): threw exception TypeError: Type error 3 PASS: Posting message ('1', 1): threw exception TypeError: Failed to execute 'po stMessage' on 'Window': Third argument is neither an array, nor does it have ind exed properties.
4 PASS: Posting message ('2', c): threw exception TypeError: Type error 4 PASS: Posting message ('2', c): threw exception TypeError: Failed to execute 'po stMessage' on 'Window': Second argument is neither an array, nor does it have in dexed properties.
5 PASS: Posting message ('3', [object Object]): threw exception TypeError: Type er ror 5 PASS: Posting message ('3', [object Object]): threw exception TypeError: Failed to execute 'postMessage' on 'Window': Third argument is neither an array, nor do es it have indexed properties.
6 PASS: Posting message ('3a', *): threw exception TypeError: Failed to execute 'p ostMessage' on 'Window': Second argument is neither an array, nor does it have i ndexed properties.
6 PASS: Posting message ('4', [object Window]) did not throw an exception 7 PASS: Posting message ('4', [object Window]) did not throw an exception
7 PASS: Posting message ('4a', *) did not throw an exception 8 PASS: Posting message ('4a', *) did not throw an exception
8 PASS: Posting message ('5', null) did not throw an exception 9 PASS: Posting message ('5', null) did not throw an exception
9 PASS: Posting message ('6', undefined) did not throw an exception 10 PASS: Posting message ('6', undefined) did not throw an exception
10 PASS: Posting message ('7', [object MessagePort],[object MessagePort]) did not t hrow an exception 11 PASS: Posting message ('7', [object MessagePort],[object MessagePort]) did not t hrow an exception
11 PASS: Posting message ('7a', *) did not throw an exception 12 PASS: Posting message ('7a', *) did not throw an exception
12 PASS: Posting message ('7', [object MessagePort],[object MessagePort]) did not t hrow an exception 13 PASS: Posting message ('7', [object MessagePort],[object MessagePort]) did not t hrow an exception
13 PASS: Posting message ('2147483648', null) did not throw an exception 14 PASS: Posting message ('2147483648', null) did not throw an exception
14 PASS: Posting message ('[object MessagePort]', [object MessagePort],[object Mess agePort]) did not throw an exception 15 PASS: Posting message ('[object MessagePort]', [object MessagePort],[object Mess agePort]) did not throw an exception
15 PASS: Posting message ('[object MessagePort]', [object MessagePort],[object Mess agePort]) did not throw an exception 16 PASS: Posting message ('[object MessagePort]', [object MessagePort],[object Mess agePort]) did not throw an exception
16 PASS: Posting message ('[object MessagePort],[object MessagePort]', [object Mess agePort],[object MessagePort]) did not throw an exception 17 PASS: Posting message ('[object MessagePort],[object MessagePort]', [object Mess agePort],[object MessagePort]) did not throw an exception
17 PASS: Posting message ('[object ArrayBuffer]', [object ArrayBuffer]) did not thr ow an exception 18 PASS: Posting message ('[object ArrayBuffer]', [object ArrayBuffer]) did not thr ow an exception
18 PASS: arrayBuffer neutered 19 PASS: arrayBuffer neutered
19 PASS: view neutered 20 PASS: view neutered
20 PASS: Posting message ('done', undefined) did not throw an exception 21 PASS: Posting message ('done', undefined) did not throw an exception
21 Received message '4' with 0 ports. 22 Received message '4' with 0 ports.
22 Received message '4a' with 0 ports. 23 Received message '4a' with 0 ports.
23 Received message '5' with 0 ports. 24 Received message '5' with 0 ports.
24 Received message '6' with 0 ports. 25 Received message '6' with 0 ports.
25 Received message '7' with 2 ports. 26 Received message '7' with 2 ports.
26 Received message '7a' with 2 ports. 27 Received message '7a' with 2 ports.
27 Received message '7' with 2 ports. 28 Received message '7' with 2 ports.
28 Received message '2147483648' with 0 ports. 29 Received message '2147483648' with 0 ports.
29 Received message '[object MessagePort]' with 2 ports. 30 Received message '[object MessagePort]' with 2 ports.
30 Received message '[object MessagePort]' with 2 ports. 31 Received message '[object MessagePort]' with 2 ports.
31 Received message '[object MessagePort],[object MessagePort]' with 2 ports. 32 Received message '[object MessagePort],[object MessagePort]' with 2 ports.
32 Received message '[object ArrayBuffer]' with 0 ports. 33 Received message '[object ArrayBuffer]' with 0 ports.
33 Received message 'done' with 0 ports. 34 Received message 'done' with 0 ports.
34 35
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/window-postmessage-args.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