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

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

Issue 2295863002: Remove window.postMessage(message, transferables, targetOrigin) legacy overload (Closed)
Patch Set: leave milestoneString alone Created 4 years, 3 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 CONSOLE WARNING: line 31: 'window.postMessage(message, transferables, targetOrig in)' is deprecated and will be removed in M54, around October 2016. Please use ' window.postMessage(message, targetOrigin, transferables)' instead. See https://w ww.chromestatus.com/features/5719033043222528 for more details.
2 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.
3 2
4 3
5 PASS Posting message ('1', 1): threw exception TypeError: Failed to execute 'pos tMessage' on 'Window': The 3rd argument is neither an array, nor does it have in dexed properties. 4 PASS Posting message ('1', 1): threw exception TypeError: Failed to execute 'pos tMessage' on 'Window': The 3rd argument is neither an array, nor does it have in dexed properties.
6 PASS Posting message ('2', c): threw exception TypeError: Failed to execute 'pos tMessage' on 'Window': The 2nd argument is neither an array, nor does it have in dexed properties. 5 PASS Posting message ('2', c): threw exception TypeError: Failed to execute 'pos tMessage' on 'Window': The 3rd argument is neither an array, nor does it have in dexed properties.
7 PASS Posting message ('3', [object Object]): threw exception TypeError: Failed t o execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor d oes it have indexed properties. 6 PASS Posting message ('3', [object Object]): threw exception TypeError: Failed t o execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor d oes it have indexed properties.
8 PASS Posting message ('3a', *): threw exception TypeError: Failed to execute 'po stMessage' on 'Window': The 2nd argument is neither an array, nor does it have i ndexed properties.
9 PASS Posting message ('4', [object Window]) did not throw an exception 7 PASS Posting message ('4', [object Window]) did not throw an exception
10 PASS Posting message ('4a', *) did not throw an exception
11 PASS Posting message ('5', undefined) did not throw an exception 8 PASS Posting message ('5', undefined) did not throw an exception
12 PASS Posting message ('5a', null): threw exception TypeError: Failed to execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor does it hav e indexed properties. 9 PASS Posting message ('5a', null): threw exception TypeError: Failed to execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor does it hav e indexed properties.
13 PASS Posting message ('6', undefined) did not throw an exception 10 PASS Posting message ('6', undefined) did not throw an exception
14 PASS Posting message ('7', [object MessagePort],[object MessagePort]) did not th row an exception 11 PASS Posting message ('7', [object MessagePort],[object MessagePort]) did not th row an exception
15 PASS Posting message ('7a', *) did not throw an exception
16 PASS Posting message ('7', [object MessagePort],[object MessagePort]) did not th row an exception 12 PASS Posting message ('7', [object MessagePort],[object MessagePort]) did not th row an exception
17 PASS Posting message ('2147483648', undefined) did not throw an exception 13 PASS Posting message ('2147483648', undefined) did not throw an exception
18 PASS Posting message ('2147483648', null): threw exception TypeError: Failed to execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor doe s it have indexed properties. 14 PASS Posting message ('2147483648', null): threw exception TypeError: Failed to execute 'postMessage' on 'Window': The 3rd argument is neither an array, nor doe s it have indexed properties.
19 PASS Posting message ('[object MessagePort]', [object MessagePort],[object Messa gePort]) did not throw an exception 15 PASS Posting message ('[object MessagePort]', [object MessagePort],[object Messa gePort]) did not throw an exception
20 PASS Posting message ('[object MessagePort]', [object MessagePort],[object Messa gePort]) did not throw an exception 16 PASS Posting message ('[object MessagePort]', [object MessagePort],[object Messa gePort]) did not throw an exception
21 PASS Posting message ('[object MessagePort],[object MessagePort]', [object Messa gePort],[object MessagePort]) did not throw an exception 17 PASS Posting message ('[object MessagePort],[object MessagePort]', [object Messa gePort],[object MessagePort]) did not throw an exception
22 PASS Posting message ('data', [object MessagePort],[object MessagePort]): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': Port at i ndex 0 is already neutered. 18 PASS Posting message ('data', [object MessagePort],[object MessagePort]): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': Port at i ndex 0 is already neutered.
23 PASS Posting message ('[object MessagePort],[object MessagePort]', ): threw exce ption DataCloneError: Failed to execute 'postMessage' on 'Window': A MessagePort could not be cloned. 19 PASS Posting message ('[object MessagePort],[object MessagePort]', ): threw exce ption DataCloneError: Failed to execute 'postMessage' on 'Window': A MessagePort could not be cloned.
24 PASS Posting message ('[object ArrayBuffer]', [object ArrayBuffer]) did not thro w an exception 20 PASS Posting message ('[object ArrayBuffer]', [object ArrayBuffer]) did not thro w an exception
25 PASS arrayBuffer neutered 21 PASS arrayBuffer neutered
26 PASS view neutered 22 PASS view neutered
27 PASS Posting message ('[object ArrayBuffer]', ): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': An ArrayBuffer is neutered and cou ld not be cloned. 23 PASS Posting message ('[object ArrayBuffer]', ): threw exception DataCloneError: Failed to execute 'postMessage' on 'Window': An ArrayBuffer is neutered and cou ld not be cloned.
28 PASS Posting message ('data', [object ArrayBuffer]): threw exception DataCloneEr ror: Failed to execute 'postMessage' on 'Window': ArrayBuffer at index 0 is alre ady neutered. 24 PASS Posting message ('data', [object ArrayBuffer]): threw exception DataCloneEr ror: Failed to execute 'postMessage' on 'Window': ArrayBuffer at index 0 is alre ady neutered.
29 PASS Posting message ('', ): threw exception DataCloneError: Failed to execute ' postMessage' on 'Window': An ArrayBuffer is neutered and could not be cloned. 25 PASS Posting message ('', ): threw exception DataCloneError: Failed to execute ' postMessage' on 'Window': An ArrayBuffer is neutered and could not be cloned.
30 PASS Posting message ('data', ): threw exception TypeError: Failed to execute 'p ostMessage' on 'Window': Value at index 0 does not have a transferable type. 26 PASS Posting message ('data', ): threw exception TypeError: Failed to execute 'p ostMessage' on 'Window': Value at index 0 does not have a transferable type.
31 PASS Posting message ('data', [object Object]): threw exception TypeError: Faile d to execute 'postMessage' on 'Window': Value at index 0 is an untransferable 'u ndefined' value. 27 PASS Posting message ('data', [object Object]): threw exception TypeError: Faile d to execute 'postMessage' on 'Window': Value at index 0 is an untransferable 'u ndefined' value.
32 PASS Posting message ('data', 1,,2): threw exception TypeError: Failed to execut e 'postMessage' on 'Window': Value at index 0 does not have a transferable type. 28 PASS Posting message ('data', 1,,2): threw exception TypeError: Failed to execut e 'postMessage' on 'Window': Value at index 0 does not have a transferable type.
33 PASS Posting message ('data', ,function () { [native code] }): threw exception T ypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 is an un transferable 'null' value. 29 PASS Posting message ('data', ,function () { [native code] }): threw exception T ypeError: Failed to execute 'postMessage' on 'Window': Value at index 0 is an un transferable 'null' value.
34 PASS window.postMessage() threw exception TypeError: Failed to execute 'postMess age' on 'Window': 2 arguments required, but only 0 present.. 30 PASS window.postMessage() threw exception TypeError: Failed to execute 'postMess age' on 'Window': 2 arguments required, but only 0 present..
35 PASS window.postMessage('a') threw exception TypeError: Failed to execute 'postM essage' on 'Window': 2 arguments required, but only 1 present.. 31 PASS window.postMessage('a') threw exception TypeError: Failed to execute 'postM essage' on 'Window': 2 arguments required, but only 1 present..
36 PASS Posting message ('done', undefined) did not throw an exception 32 PASS Posting message ('done', undefined) did not throw an exception
37 Received message '4' with 0 ports. 33 Received message '4' with 0 ports.
38 Received message '4a' with 0 ports.
39 Received message '5' with 0 ports. 34 Received message '5' with 0 ports.
40 Received message '6' with 0 ports. 35 Received message '6' with 0 ports.
41 Received message '7' with 2 ports. 36 Received message '7' with 2 ports.
42 Received message '7a' with 2 ports.
43 Received message '7' with 2 ports. 37 Received message '7' with 2 ports.
44 Received message '2147483648' with 0 ports. 38 Received message '2147483648' with 0 ports.
45 Received message '[object MessagePort]' with 2 ports. 39 Received message '[object MessagePort]' with 2 ports.
46 Received message '[object MessagePort]' with 2 ports. 40 Received message '[object MessagePort]' with 2 ports.
47 Received message '[object MessagePort],[object MessagePort]' with 2 ports. 41 Received message '[object MessagePort],[object MessagePort]' with 2 ports.
48 Received message '[object ArrayBuffer]' with 0 ports. 42 Received message '[object ArrayBuffer]' with 0 ports.
49 Received message 'done' with 0 ports. 43 Received message 'done' with 0 ports.
50 PASS successfullyParsed is true 44 PASS successfullyParsed is true
51 45
52 TEST COMPLETE 46 TEST COMPLETE
53 47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698