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

Side by Side Diff: LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt

Issue 85263002: Improve handling of dictionary conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have conversion methods take a context argument; elaborate error msgs further. Created 7 years 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 MouseEvent DOM class. 1 This tests the constructor for the MouseEvent 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 MouseEvent('eventType').bubbles is false 6 PASS new MouseEvent('eventType').bubbles is false
7 PASS new MouseEvent('eventType').cancelable is false 7 PASS new MouseEvent('eventType').cancelable is false
8 PASS new MouseEvent('eventType').view is null 8 PASS new MouseEvent('eventType').view is null
9 PASS new MouseEvent('eventType').detail is 0 9 PASS new MouseEvent('eventType').detail is 0
10 PASS new MouseEvent('eventType').screenX is 0 10 PASS new MouseEvent('eventType').screenX is 0
11 PASS new MouseEvent('eventType').screenY is 0 11 PASS new MouseEvent('eventType').screenY is 0
12 PASS new MouseEvent('eventType').clientX is 0 12 PASS new MouseEvent('eventType').clientX is 0
13 PASS new MouseEvent('eventType').clientY is 0 13 PASS new MouseEvent('eventType').clientY is 0
14 PASS new MouseEvent('eventType').ctrlKey is false 14 PASS new MouseEvent('eventType').ctrlKey is false
15 PASS new MouseEvent('eventType').shiftKey is false 15 PASS new MouseEvent('eventType').shiftKey is false
16 PASS new MouseEvent('eventType').altKey is false 16 PASS new MouseEvent('eventType').altKey is false
17 PASS new MouseEvent('eventType').metaKey is false 17 PASS new MouseEvent('eventType').metaKey is false
18 PASS new MouseEvent('eventType').button is 0 18 PASS new MouseEvent('eventType').button is 0
19 PASS new MouseEvent('eventType').relatedTarget is null 19 PASS new MouseEvent('eventType').relatedTarget is null
20 PASS new MouseEvent('eventType', { bubbles: false }).bubbles is false 20 PASS new MouseEvent('eventType', { bubbles: false }).bubbles is false
21 PASS new MouseEvent('eventType', { bubbles: true }).bubbles is true 21 PASS new MouseEvent('eventType', { bubbles: true }).bubbles is true
22 PASS new MouseEvent('eventType', { cancelable: false }).cancelable is false 22 PASS new MouseEvent('eventType', { cancelable: false }).cancelable is false
23 PASS new MouseEvent('eventType', { cancelable: true }).cancelable is true 23 PASS new MouseEvent('eventType', { cancelable: true }).cancelable is true
24 PASS new MouseEvent('eventType', { view: window }).view is window 24 PASS new MouseEvent('eventType', { view: window }).view is window
25 PASS new MouseEvent('eventType', { view: this }).view is this 25 PASS new MouseEvent('eventType', { view: this }).view is this
26 PASS new MouseEvent('eventType', { view: testObject }).view is null 26 PASS new MouseEvent('eventType', { view: testObject }).view threw exception Type Error: Failed to construct 'MouseEvent': The 'view' property does not have a Win dow type..
27 PASS new MouseEvent('eventType', { view: document }).view is null 27 PASS new MouseEvent('eventType', { view: document }).view threw exception TypeEr ror: Failed to construct 'MouseEvent': The 'view' property does not have a Windo w type..
28 PASS new MouseEvent('eventType', { view: undefined }).view is null 28 PASS new MouseEvent('eventType', { view: undefined }).view is null
29 PASS new MouseEvent('eventType', { view: null }).view is null 29 PASS new MouseEvent('eventType', { view: null }).view is null
30 PASS new MouseEvent('eventType', { view: false }).view is null 30 PASS new MouseEvent('eventType', { view: false }).view threw exception TypeError : Failed to construct 'MouseEvent': The 'view' property does not have a Window t ype..
31 PASS new MouseEvent('eventType', { view: true }).view is null 31 PASS new MouseEvent('eventType', { view: true }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window ty pe..
32 PASS new MouseEvent('eventType', { view: '' }).view is null 32 PASS new MouseEvent('eventType', { view: '' }).view threw exception TypeError: F ailed to construct 'MouseEvent': The 'view' property does not have a Window type ..
33 PASS new MouseEvent('eventType', { view: 'chocolate' }).view is null 33 PASS new MouseEvent('eventType', { view: 'chocolate' }).view threw exception Typ eError: Failed to construct 'MouseEvent': The 'view' property does not have a Wi ndow type..
34 PASS new MouseEvent('eventType', { view: 12345 }).view is null 34 PASS new MouseEvent('eventType', { view: 12345 }).view threw exception TypeError : Failed to construct 'MouseEvent': The 'view' property does not have a Window t ype..
35 PASS new MouseEvent('eventType', { view: 18446744073709551615 }).view is null 35 PASS new MouseEvent('eventType', { view: 18446744073709551615 }).view threw exce ption TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
36 PASS new MouseEvent('eventType', { view: NaN }).view is null 36 PASS new MouseEvent('eventType', { view: NaN }).view threw exception TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window typ e..
37 PASS new MouseEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window is false 37 PASS new MouseEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window threw exception TypeError: Failed to construct 'MouseEvent ': The 'view' property does not have a Window type..
38 PASS new MouseEvent('eventType', { get view() { return 123; } }).view is null 38 PASS new MouseEvent('eventType', { get view() { return window; } }).view is wind ow
39 PASS new MouseEvent('eventType', { get view() { return 123; } }).view threw exce ption TypeError: Failed to construct 'MouseEvent': The 'view' property does not have a Window type..
39 PASS new MouseEvent('eventType', { get view() { throw 'MouseEvent Error'; } }) t hrew exception MouseEvent Error. 40 PASS new MouseEvent('eventType', { get view() { throw 'MouseEvent Error'; } }) t hrew exception MouseEvent Error.
40 PASS new MouseEvent('eventType', { detail: 0 }).detail is 0 41 PASS new MouseEvent('eventType', { detail: 0 }).detail is 0
41 PASS new MouseEvent('eventType', { detail: 2147483647 }).detail is 2147483647 42 PASS new MouseEvent('eventType', { detail: 2147483647 }).detail is 2147483647
42 PASS new MouseEvent('eventType', { detail: -1 }).detail is -1 43 PASS new MouseEvent('eventType', { detail: -1 }).detail is -1
43 PASS new MouseEvent('eventType', { detail: -2147483648 }).detail is -2147483648 44 PASS new MouseEvent('eventType', { detail: -2147483648 }).detail is -2147483648
44 PASS new MouseEvent('eventType', { detail: 4294967295 }).detail is -1 45 PASS new MouseEvent('eventType', { detail: 4294967295 }).detail is -1
45 PASS new MouseEvent('eventType', { detail: 9007199254740991 }).detail is -1 46 PASS new MouseEvent('eventType', { detail: 9007199254740991 }).detail is -1
46 PASS new MouseEvent('eventType', { detail: 18446744073709551615 }).detail is 0 47 PASS new MouseEvent('eventType', { detail: 18446744073709551615 }).detail is 0
47 PASS new MouseEvent('eventType', { detail: 123.45 }).detail is 123 48 PASS new MouseEvent('eventType', { detail: 123.45 }).detail is 123
48 PASS new MouseEvent('eventType', { detail: NaN }).detail is 0 49 PASS new MouseEvent('eventType', { detail: NaN }).detail is 0
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 PASS new MouseEvent('eventType', { button: [] }).button is 0 170 PASS new MouseEvent('eventType', { button: [] }).button is 0
170 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345 171 PASS new MouseEvent('eventType', { button: [12345] }).button is 12345
171 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0 172 PASS new MouseEvent('eventType', { button: [12345, 67890] }).button is 0
172 PASS new MouseEvent('eventType', { button: {} }).button is 0 173 PASS new MouseEvent('eventType', { button: {} }).button is 0
173 PASS new MouseEvent('eventType', { button: {moemoe: 12345} }).button is 0 174 PASS new MouseEvent('eventType', { button: {moemoe: 12345} }).button is 0
174 PASS new MouseEvent('eventType', { button: {valueOf: function () { return 12345; }} }).button is 12345 175 PASS new MouseEvent('eventType', { button: {valueOf: function () { return 12345; }} }).button is 12345
175 PASS new MouseEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te stDiv 176 PASS new MouseEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te stDiv
176 PASS new MouseEvent('eventType', { relatedTarget: document }).relatedTarget is d ocument 177 PASS new MouseEvent('eventType', { relatedTarget: document }).relatedTarget is d ocument
177 PASS new MouseEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr 178 PASS new MouseEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr
178 PASS new MouseEvent('eventType', { relatedTarget: window }).relatedTarget is win dow 179 PASS new MouseEvent('eventType', { relatedTarget: window }).relatedTarget is win dow
179 PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget is null 180 PASS new MouseEvent('eventType', { relatedTarget: testObject }).relatedTarget th rew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' p roperty does not have a EventTarget type..
180 PASS new MouseEvent('eventType', { relatedTarget: undefined }).relatedTarget is null 181 PASS new MouseEvent('eventType', { relatedTarget: undefined }).relatedTarget is null
181 PASS new MouseEvent('eventType', { relatedTarget: null }).relatedTarget is null 182 PASS new MouseEvent('eventType', { relatedTarget: null }).relatedTarget is null
182 PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget is null 183 PASS new MouseEvent('eventType', { relatedTarget: false }).relatedTarget threw e xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper ty does not have a EventTarget type..
183 PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget is null 184 PASS new MouseEvent('eventType', { relatedTarget: true }).relatedTarget threw ex ception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' propert y does not have a EventTarget type..
184 PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget is null 185 PASS new MouseEvent('eventType', { relatedTarget: '' }).relatedTarget threw exce ption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
185 PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget i s null 186 PASS new MouseEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget t hrew exception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
186 PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget is null 187 PASS new MouseEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw e xception TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' proper ty does not have a EventTarget type..
187 PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relate dTarget is null 188 PASS new MouseEvent('eventType', { relatedTarget: 18446744073709551615 }).relate dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate dTarget' property does not have a EventTarget type..
188 PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget is null 189 PASS new MouseEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exc eption TypeError: Failed to construct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
189 PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv is false 190 PASS new MouseEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to c onstruct 'MouseEvent': The 'relatedTarget' property does not have a EventTarget type..
190 PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relate dTarget is null 191 PASS new MouseEvent('eventType', { get relatedTarget() { return testDiv; } }).re latedTarget is testDiv
192 PASS new MouseEvent('eventType', { get relatedTarget() { return 123; } }).relate dTarget threw exception TypeError: Failed to construct 'MouseEvent': The 'relate dTarget' property does not have a EventTarget type..
191 PASS new MouseEvent('eventType', { get relatedTarget() { throw 'MouseEvent Error '; } }) threw exception MouseEvent Error. 193 PASS new MouseEvent('eventType', { get relatedTarget() { throw 'MouseEvent Error '; } }) threw exception MouseEvent Error.
192 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).bubbles is true 194 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).bubbles is true
193 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).cancelable is true 195 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).cancelable is true
194 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).view is window 196 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).view is window
195 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).detail is 111 197 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).detail is 111
196 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).screenX is 222 198 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).screenX is 222
197 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).screenY is 333 199 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).screenY is 333
198 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).clientX is 444 200 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).clientX is 444
199 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).clientY is 555 201 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).clientY is 555
200 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).ctrlKey is true 202 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).ctrlKey is true
201 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).shiftKey is true 203 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).shiftKey is true
202 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).altKey is true 204 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).altKey is true
203 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).metaKey is true 205 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).metaKey is true
204 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).button is 666 206 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).button is 666
205 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).relatedTarget is testDiv 207 PASS new MouseEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, screenX: 222, screenY: 333, clientX: 444, clientY: 555, ctrlKey: true, shiftKey: true, altKey: true, metaKey: true, button: 666, relatedTarget: t estDiv }).relatedTarget is testDiv
206 PASS successfullyParsed is true 208 PASS successfullyParsed is true
207 209
208 TEST COMPLETE 210 TEST COMPLETE
209 211
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698