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

Side by Side Diff: LayoutTests/fast/events/constructors/focus-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 FocusEvent DOM class. 1 This tests the constructor for the FocusEvent 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 FocusEvent('eventType').bubbles is false 6 PASS new FocusEvent('eventType').bubbles is false
7 PASS new FocusEvent('eventType').cancelable is false 7 PASS new FocusEvent('eventType').cancelable is false
8 PASS new FocusEvent('eventType').view is null 8 PASS new FocusEvent('eventType').view is null
9 PASS new FocusEvent('eventType').detail is 0 9 PASS new FocusEvent('eventType').detail is 0
10 PASS new FocusEvent('eventType').relatedTarget is null 10 PASS new FocusEvent('eventType').relatedTarget is null
11 PASS new FocusEvent('eventType', { bubbles: false }).bubbles is false 11 PASS new FocusEvent('eventType', { bubbles: false }).bubbles is false
12 PASS new FocusEvent('eventType', { bubbles: true }).bubbles is true 12 PASS new FocusEvent('eventType', { bubbles: true }).bubbles is true
13 PASS new FocusEvent('eventType', { cancelable: false }).cancelable is false 13 PASS new FocusEvent('eventType', { cancelable: false }).cancelable is false
14 PASS new FocusEvent('eventType', { cancelable: true }).cancelable is true 14 PASS new FocusEvent('eventType', { cancelable: true }).cancelable is true
15 PASS new FocusEvent('eventType', { view: window }).view is window 15 PASS new FocusEvent('eventType', { view: window }).view is window
16 PASS new FocusEvent('eventType', { view: this }).view is this 16 PASS new FocusEvent('eventType', { view: this }).view is this
17 PASS new FocusEvent('eventType', { view: testObject }).view is null 17 PASS new FocusEvent('eventType', { view: testObject }).view threw exception Type Error: Failed to construct 'FocusEvent': The 'view' property does not have a Win dow type..
18 PASS new FocusEvent('eventType', { view: document }).view is null 18 PASS new FocusEvent('eventType', { view: document }).view threw exception TypeEr ror: Failed to construct 'FocusEvent': The 'view' property does not have a Windo w type..
19 PASS new FocusEvent('eventType', { view: undefined }).view is null 19 PASS new FocusEvent('eventType', { view: undefined }).view is null
20 PASS new FocusEvent('eventType', { view: null }).view is null 20 PASS new FocusEvent('eventType', { view: null }).view is null
21 PASS new FocusEvent('eventType', { view: false }).view is null 21 PASS new FocusEvent('eventType', { view: false }).view threw exception TypeError : Failed to construct 'FocusEvent': The 'view' property does not have a Window t ype..
22 PASS new FocusEvent('eventType', { view: true }).view is null 22 PASS new FocusEvent('eventType', { view: true }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window ty pe..
23 PASS new FocusEvent('eventType', { view: '' }).view is null 23 PASS new FocusEvent('eventType', { view: '' }).view threw exception TypeError: F ailed to construct 'FocusEvent': The 'view' property does not have a Window type ..
24 PASS new FocusEvent('eventType', { view: 'chocolate' }).view is null 24 PASS new FocusEvent('eventType', { view: 'chocolate' }).view threw exception Typ eError: Failed to construct 'FocusEvent': The 'view' property does not have a Wi ndow type..
25 PASS new FocusEvent('eventType', { view: 12345 }).view is null 25 PASS new FocusEvent('eventType', { view: 12345 }).view threw exception TypeError : Failed to construct 'FocusEvent': The 'view' property does not have a Window t ype..
26 PASS new FocusEvent('eventType', { view: 18446744073709551615 }).view is null 26 PASS new FocusEvent('eventType', { view: 18446744073709551615 }).view threw exce ption TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type..
27 PASS new FocusEvent('eventType', { view: NaN }).view is null 27 PASS new FocusEvent('eventType', { view: NaN }).view threw exception TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window typ e..
28 PASS new FocusEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window is false 28 PASS new FocusEvent('eventType', { view: {valueOf: function () { return window; } } }).view == window threw exception TypeError: Failed to construct 'FocusEvent ': The 'view' property does not have a Window type..
29 PASS new FocusEvent('eventType', { get view() { return 123; } }).view is null 29 PASS new FocusEvent('eventType', { get view() { return window; } }).view is wind ow
30 PASS new FocusEvent('eventType', { get view() { return 123; } }).view threw exce ption TypeError: Failed to construct 'FocusEvent': The 'view' property does not have a Window type..
30 PASS new FocusEvent('eventType', { get view() { throw 'FocusEvent Error'; } }) t hrew exception FocusEvent Error. 31 PASS new FocusEvent('eventType', { get view() { throw 'FocusEvent Error'; } }) t hrew exception FocusEvent Error.
31 PASS new FocusEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te stDiv 32 PASS new FocusEvent('eventType', { relatedTarget: testDiv }).relatedTarget is te stDiv
32 PASS new FocusEvent('eventType', { relatedTarget: document }).relatedTarget is d ocument 33 PASS new FocusEvent('eventType', { relatedTarget: document }).relatedTarget is d ocument
33 PASS new FocusEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr 34 PASS new FocusEvent('eventType', { relatedTarget: xhr }).relatedTarget is xhr
34 PASS new FocusEvent('eventType', { relatedTarget: window }).relatedTarget is win dow 35 PASS new FocusEvent('eventType', { relatedTarget: window }).relatedTarget is win dow
35 PASS new FocusEvent('eventType', { relatedTarget: testObject }).relatedTarget is null 36 PASS new FocusEvent('eventType', { relatedTarget: testObject }).relatedTarget th rew exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' p roperty does not have a EventTarget type..
36 PASS new FocusEvent('eventType', { relatedTarget: undefined }).relatedTarget is null 37 PASS new FocusEvent('eventType', { relatedTarget: undefined }).relatedTarget is null
37 PASS new FocusEvent('eventType', { relatedTarget: null }).relatedTarget is null 38 PASS new FocusEvent('eventType', { relatedTarget: null }).relatedTarget is null
38 PASS new FocusEvent('eventType', { relatedTarget: false }).relatedTarget is null 39 PASS new FocusEvent('eventType', { relatedTarget: false }).relatedTarget threw e xception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' proper ty does not have a EventTarget type..
39 PASS new FocusEvent('eventType', { relatedTarget: true }).relatedTarget is null 40 PASS new FocusEvent('eventType', { relatedTarget: true }).relatedTarget threw ex ception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' propert y does not have a EventTarget type..
40 PASS new FocusEvent('eventType', { relatedTarget: '' }).relatedTarget is null 41 PASS new FocusEvent('eventType', { relatedTarget: '' }).relatedTarget threw exce ption TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type..
41 PASS new FocusEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget i s null 42 PASS new FocusEvent('eventType', { relatedTarget: 'chocolate' }).relatedTarget t hrew exception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type..
42 PASS new FocusEvent('eventType', { relatedTarget: 12345 }).relatedTarget is null 43 PASS new FocusEvent('eventType', { relatedTarget: 12345 }).relatedTarget threw e xception TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' proper ty does not have a EventTarget type..
43 PASS new FocusEvent('eventType', { relatedTarget: 18446744073709551615 }).relate dTarget is null 44 PASS new FocusEvent('eventType', { relatedTarget: 18446744073709551615 }).relate dTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relate dTarget' property does not have a EventTarget type..
44 PASS new FocusEvent('eventType', { relatedTarget: NaN }).relatedTarget is null 45 PASS new FocusEvent('eventType', { relatedTarget: NaN }).relatedTarget threw exc eption TypeError: Failed to construct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type..
45 PASS new FocusEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv is false 46 PASS new FocusEvent('eventType', { relatedTarget: {valueOf: function () { return testDiv; } } }).relatedTarget == testDiv threw exception TypeError: Failed to c onstruct 'FocusEvent': The 'relatedTarget' property does not have a EventTarget type..
46 PASS new FocusEvent('eventType', { get relatedTarget() { return 123; } }).relate dTarget is null 47 PASS new FocusEvent('eventType', { get relatedTarget() { return testDiv; } }).re latedTarget == testDiv is true
48 PASS new FocusEvent('eventType', { get relatedTarget() { return 123; } }).relate dTarget threw exception TypeError: Failed to construct 'FocusEvent': The 'relate dTarget' property does not have a EventTarget type..
47 PASS new FocusEvent('eventType', { get relatedTarget() { throw 'FocusEvent Error '; } }) threw exception FocusEvent Error. 49 PASS new FocusEvent('eventType', { get relatedTarget() { throw 'FocusEvent Error '; } }) threw exception FocusEvent Error.
48 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).bubbles is true 50 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).bubbles is true
49 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).cancelable is true 51 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).cancelable is true
50 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).view is window 52 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).view is window
51 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).detail is 111 53 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).detail is 111
52 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).relatedTarget is testDiv 54 PASS new FocusEvent('eventType', { bubbles: true, cancelable: true, view: window , detail: 111, relatedTarget: testDiv }).relatedTarget is testDiv
53 PASS successfullyParsed is true 55 PASS successfullyParsed is true
54 56
55 TEST COMPLETE 57 TEST COMPLETE
56 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698