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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/constructors/message-event-constructor-expected.txt

Issue 2810843002: bindings: Make the sequence conversion code more complaint with WebIDL. (Closed)
Patch Set: Adjust even more tests Created 3 years, 8 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 This tests the constructor for the MessageEvent DOM class. 1 This tests the constructor for the MessageEvent DOM class.
2 2
3 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 ".
4 4
5 5
6 PASS new MessageEvent('eventType').bubbles is false 6 PASS new MessageEvent('eventType').bubbles is false
7 PASS new MessageEvent('eventType').cancelable is false 7 PASS new MessageEvent('eventType').cancelable is false
8 PASS new MessageEvent('eventType').data is null 8 PASS new MessageEvent('eventType').data is null
9 PASS new MessageEvent('eventType').origin is "" 9 PASS new MessageEvent('eventType').origin is ""
10 PASS new MessageEvent('eventType').lastEventId is "" 10 PASS new MessageEvent('eventType').lastEventId is ""
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return wind ow; } } }).source == window threw exception TypeError: Failed to construct 'Mess ageEvent': member source is not of type EventTarget.. 76 PASS new MessageEvent('eventType', { source: {valueOf: function () { return wind ow; } } }).source == window threw exception TypeError: Failed to construct 'Mess ageEvent': member source is not of type EventTarget..
77 PASS new MessageEvent('eventType', { get source() { return window; } }).source i s window 77 PASS new MessageEvent('eventType', { get source() { return window; } }).source i s window
78 PASS new MessageEvent('eventType', { get source() { return 123; } }).source thre w exception TypeError: Failed to construct 'MessageEvent': member source is not of type EventTarget.. 78 PASS new MessageEvent('eventType', { get source() { return 123; } }).source thre w exception TypeError: Failed to construct 'MessageEvent': member source is not of type EventTarget..
79 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error. 79 PASS new MessageEvent('eventType', { get source() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
80 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[0] is channel.port1 80 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[0] is channel.port1
81 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[1] is channel.port2 81 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[1] is channel.port2
82 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[2] is channel2.port1 82 PASS new MessageEvent('eventType', { ports: [channel.port1, channel.port2, chann el2.port1] }).ports[2] is channel2.port1
83 PASS new MessageEvent('eventType', { ports: [] }).ports is [] 83 PASS new MessageEvent('eventType', { ports: [] }).ports is []
84 PASS new MessageEvent('eventType', { ports: undefined }).ports is null 84 PASS new MessageEvent('eventType', { ports: undefined }).ports is null
85 PASS new MessageEvent('eventType', { ports: null }).ports is null 85 PASS new MessageEvent('eventType', { ports: null }).ports is null
86 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio n TypeError: Failed to construct 'MessageEvent': Invalid Array element type. 86 PASS new MessageEvent('eventType', { ports: [1, 2, 3] }).ports[2] threw exceptio n TypeError: Failed to construct 'MessageEvent': Failed to convert value to 'Mes sagePort'..
87 PASS new MessageEvent('eventType', { ports: test_object }).ports threw exception TypeError: Failed to construct 'MessageEvent': The value provided is neither an array, nor does it have indexed properties.. 87 PASS new MessageEvent('eventType', { ports: test_object }).ports threw exception TypeError: Failed to construct 'MessageEvent': Iterator getter is not callable. .
88 PASS new MessageEvent('eventType', { ports: document }).ports threw exception Ty peError: Failed to construct 'MessageEvent': The value provided is neither an ar ray, nor does it have indexed properties.. 88 PASS new MessageEvent('eventType', { ports: document }).ports threw exception Ty peError: Failed to construct 'MessageEvent': Iterator getter is not callable..
89 PASS new MessageEvent('eventType', { ports: false }).ports threw exception TypeE rror: Failed to construct 'MessageEvent': The value provided is neither an array , nor does it have indexed properties.. 89 PASS new MessageEvent('eventType', { ports: false }).ports threw exception TypeE rror: Failed to construct 'MessageEvent': The provided value cannot be converted to a sequence..
90 PASS new MessageEvent('eventType', { ports: true }).ports threw exception TypeEr ror: Failed to construct 'MessageEvent': The value provided is neither an array, nor does it have indexed properties.. 90 PASS new MessageEvent('eventType', { ports: true }).ports threw exception TypeEr ror: Failed to construct 'MessageEvent': The provided value cannot be converted to a sequence..
91 PASS new MessageEvent('eventType', { ports: '' }).ports threw exception TypeErro r: Failed to construct 'MessageEvent': The value provided is neither an array, n or does it have indexed properties.. 91 PASS new MessageEvent('eventType', { ports: '' }).ports threw exception TypeErro r: Failed to construct 'MessageEvent': The provided value cannot be converted to a sequence..
92 PASS new MessageEvent('eventType', { ports: 'chocolate' }).ports threw exception TypeError: Failed to construct 'MessageEvent': The value provided is neither an array, nor does it have indexed properties.. 92 PASS new MessageEvent('eventType', { ports: 'chocolate' }).ports threw exception TypeError: Failed to construct 'MessageEvent': The provided value cannot be con verted to a sequence..
93 PASS new MessageEvent('eventType', { ports: 12345 }).ports threw exception TypeE rror: Failed to construct 'MessageEvent': The value provided is neither an array , nor does it have indexed properties.. 93 PASS new MessageEvent('eventType', { ports: 12345 }).ports threw exception TypeE rror: Failed to construct 'MessageEvent': The provided value cannot be converted to a sequence..
94 PASS new MessageEvent('eventType', { ports: 18446744073709551615 }).ports threw exception TypeError: Failed to construct 'MessageEvent': The value provided is n either an array, nor does it have indexed properties.. 94 PASS new MessageEvent('eventType', { ports: 18446744073709551615 }).ports threw exception TypeError: Failed to construct 'MessageEvent': The provided value cann ot be converted to a sequence..
95 PASS new MessageEvent('eventType', { ports: NaN }).ports threw exception TypeErr or: Failed to construct 'MessageEvent': The value provided is neither an array, nor does it have indexed properties.. 95 PASS new MessageEvent('eventType', { ports: NaN }).ports threw exception TypeErr or: Failed to construct 'MessageEvent': The provided value cannot be converted t o a sequence..
96 PASS new MessageEvent('eventType', { get ports() { return 123; } }).ports threw exception TypeError: Failed to construct 'MessageEvent': The value provided is n either an array, nor does it have indexed properties.. 96 PASS new MessageEvent('eventType', { get ports() { return 123; } }).ports threw exception TypeError: Failed to construct 'MessageEvent': The provided value cann ot be converted to a sequence..
97 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error. 97 PASS new MessageEvent('eventType', { get ports() { throw 'MessageEvent Error'; } }) threw exception MessageEvent Error.
98 PASS new MessageEvent('eventType', { ports: {valueOf: function () { return [chan nel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeEr ror: Failed to construct 'MessageEvent': The value provided is neither an array, nor does it have indexed properties.. 98 PASS new MessageEvent('eventType', { ports: {valueOf: function () { return [chan nel.port1, channel.port2, channel.port2]; } } }).ports[0] threw exception TypeEr ror: Failed to construct 'MessageEvent': Iterator getter is not callable..
99 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: { length: 3, 0: channel.port1, 1: channel.port2, 2: channel2.port1} }).ports[2] th rew exception TypeError: Failed to construct 'MessageEvent': Iterator getter is not callable..
99 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).bubbles is true 100 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).bubbles is true
100 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).cancelable is true 101 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).cancelable is true
101 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).data is test_object 102 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).data is test_object
102 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).origin is "wonderful" 103 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).origin is "wonderful"
103 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).lastEventId is "excellent" 104 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).lastEventId is "excellent"
104 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).source is window 105 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).source is window
105 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[0] is channel.port1 106 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[0] is channel.port1
106 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[1] is channel.port2 107 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[1] is channel.port2
107 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[2] is channel2.port1 108 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: [ channel.port1, channel.port2, channel2.port1] }).ports[2] is channel2.port1
108 PASS new MessageEvent('eventType', { bubbles: true, cancelable: true, data: test _object, origin: 'wonderful', lastEventId: 'excellent', source: window, ports: { length: 3, 0: channel.port1, 1: channel.port2, 2: channel2.port1} }).ports[2] is channel2.port1
109 PASS successfullyParsed is true 109 PASS successfullyParsed is true
110 110
111 TEST COMPLETE 111 TEST COMPLETE
112 112
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698