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

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

Issue 2098883002: Make PointerEvent an experimental web platform feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, fixed js path. Created 4 years, 5 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
(Empty)
1 This tests the constructor for the PointerEvent DOM class.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 --- tests for intrinsic attributes ---
7 -- no init --
8 PASS new PointerEvent('eventType').pointerId is 0
9 -- init with valid long values --
10 PASS new PointerEvent('eventType', { pointerId: 123 }).pointerId is 123
11 PASS new PointerEvent('eventType', { pointerId: -123 }).pointerId is -123
12 PASS new PointerEvent('eventType', { pointerId: 2147483647 }).pointerId is 21474 83647
13 PASS new PointerEvent('eventType', { pointerId: -2147483648 }).pointerId is -214 7483648
14 -- init with non-long values --
15 PASS new PointerEvent('eventType', { pointerId: 18446744073709551615 }).pointerI d is 0
16 PASS new PointerEvent('eventType', {pointerId: 123.45 }).pointerId is 123
17 PASS new PointerEvent('eventType', { pointerId: '123abc' }).pointerId is 0
18 PASS new PointerEvent('eventType', { pointerId: 'dummy' }).pointerId is 0
19 PASS new PointerEvent('eventType', { pointerId: NaN }).pointerId is 0
20 PASS new PointerEvent('eventType', { pointerId: null }).pointerId is 0
21 PASS new PointerEvent('eventType', { pointerId: undefined }).pointerId is 0
22 PASS new PointerEvent('eventType', { pointerId: [] }).pointerId is 0
23 PASS new PointerEvent('eventType', { pointerId: [12] }).pointerId is 12
24 PASS new PointerEvent('eventType', { pointerId: [12, 34] }).pointerId is 0
25 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0
26 PASS new PointerEvent('eventType', { pointerId: {abc:1} }).pointerId is 0
27 PASS new PointerEvent('eventType', { pointerId: {} }).pointerId is 0
28 PASS new PointerEvent('eventType', { pointerId: {valueOf: function () { return 1 23; }} }).pointerId is 123
29 -- no init --
30 PASS new PointerEvent('eventType').tiltX is 0
31 -- init with valid long values --
32 PASS new PointerEvent('eventType', { tiltX: 123 }).tiltX is 123
33 PASS new PointerEvent('eventType', { tiltX: -123 }).tiltX is -123
34 PASS new PointerEvent('eventType', { tiltX: 2147483647 }).tiltX is 2147483647
35 PASS new PointerEvent('eventType', { tiltX: -2147483648 }).tiltX is -2147483648
36 -- init with non-long values --
37 PASS new PointerEvent('eventType', { tiltX: 18446744073709551615 }).tiltX is 0
38 PASS new PointerEvent('eventType', {tiltX: 123.45 }).tiltX is 123
39 PASS new PointerEvent('eventType', { tiltX: '123abc' }).tiltX is 0
40 PASS new PointerEvent('eventType', { tiltX: 'dummy' }).tiltX is 0
41 PASS new PointerEvent('eventType', { tiltX: NaN }).tiltX is 0
42 PASS new PointerEvent('eventType', { tiltX: null }).tiltX is 0
43 PASS new PointerEvent('eventType', { tiltX: undefined }).tiltX is 0
44 PASS new PointerEvent('eventType', { tiltX: [] }).tiltX is 0
45 PASS new PointerEvent('eventType', { tiltX: [12] }).tiltX is 12
46 PASS new PointerEvent('eventType', { tiltX: [12, 34] }).tiltX is 0
47 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0
48 PASS new PointerEvent('eventType', { tiltX: {abc:1} }).tiltX is 0
49 PASS new PointerEvent('eventType', { tiltX: {} }).tiltX is 0
50 PASS new PointerEvent('eventType', { tiltX: {valueOf: function () { return 123; }} }).tiltX is 123
51 -- no init --
52 PASS new PointerEvent('eventType').tiltY is 0
53 -- init with valid long values --
54 PASS new PointerEvent('eventType', { tiltY: 123 }).tiltY is 123
55 PASS new PointerEvent('eventType', { tiltY: -123 }).tiltY is -123
56 PASS new PointerEvent('eventType', { tiltY: 2147483647 }).tiltY is 2147483647
57 PASS new PointerEvent('eventType', { tiltY: -2147483648 }).tiltY is -2147483648
58 -- init with non-long values --
59 PASS new PointerEvent('eventType', { tiltY: 18446744073709551615 }).tiltY is 0
60 PASS new PointerEvent('eventType', {tiltY: 123.45 }).tiltY is 123
61 PASS new PointerEvent('eventType', { tiltY: '123abc' }).tiltY is 0
62 PASS new PointerEvent('eventType', { tiltY: 'dummy' }).tiltY is 0
63 PASS new PointerEvent('eventType', { tiltY: NaN }).tiltY is 0
64 PASS new PointerEvent('eventType', { tiltY: null }).tiltY is 0
65 PASS new PointerEvent('eventType', { tiltY: undefined }).tiltY is 0
66 PASS new PointerEvent('eventType', { tiltY: [] }).tiltY is 0
67 PASS new PointerEvent('eventType', { tiltY: [12] }).tiltY is 12
68 PASS new PointerEvent('eventType', { tiltY: [12, 34] }).tiltY is 0
69 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
70 PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0
71 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
72 PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123
73 -- no init --
74 PASS new PointerEvent('eventType').width is 1
75 -- init with valid float/double values --
76 PASS new PointerEvent('eventType', { width: 123 }).width is 123
77 PASS new PointerEvent('eventType', { width: -123 }).width is -123
78 PASS new PointerEvent('eventType', { width: 123.45 }).width is within 0.00001 of 123.45
79 PASS new PointerEvent('eventType', { width: -123.45 }).width is within 0.00001 o f -123.45
80 PASS new PointerEvent('eventType', { width: 1.23e5 }).width is within 0.00001 of 123000
81 PASS new PointerEvent('eventType', { width: -1.2e-3 }).width is within 0.00001 o f -0.0012
82 -- init with non-float/double values --
83 PASS new PointerEvent('eventType', { width: '123abc' }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite..
84 PASS new PointerEvent('eventType', { width: 'dummy' }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
85 PASS new PointerEvent('eventType', { width: NaN }).width threw exception TypeErr or: Failed to construct 'PointerEvent': The provided double value is non-finite. .
86 PASS new PointerEvent('eventType', { width: null }).width is 0
87 PASS new PointerEvent('eventType', { width: undefined }).width is 1
88 PASS new PointerEvent('eventType', { width: [] }).width is 0
89 PASS new PointerEvent('eventType', { width: [12] }).width is 12
90 PASS new PointerEvent('eventType', { width: [12, 34] }).width threw exception Ty peError: Failed to construct 'PointerEvent': The provided double value is non-fi nite..
91 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite..
92 PASS new PointerEvent('eventType', { width: {abc:1} }).width threw exception Typ eError: Failed to construct 'PointerEvent': The provided double value is non-fin ite..
93 PASS new PointerEvent('eventType', { width: {} }).width threw exception TypeErro r: Failed to construct 'PointerEvent': The provided double value is non-finite..
94 PASS new PointerEvent('eventType', { width: {valueOf: function () { return 123; }} }).width is 123
95 -- no init --
96 PASS new PointerEvent('eventType').height is 1
97 -- init with valid float/double values --
98 PASS new PointerEvent('eventType', { height: 123 }).height is 123
99 PASS new PointerEvent('eventType', { height: -123 }).height is -123
100 PASS new PointerEvent('eventType', { height: 123.45 }).height is within 0.00001 of 123.45
101 PASS new PointerEvent('eventType', { height: -123.45 }).height is within 0.00001 of -123.45
102 PASS new PointerEvent('eventType', { height: 1.23e5 }).height is within 0.00001 of 123000
103 PASS new PointerEvent('eventType', { height: -1.2e-3 }).height is within 0.00001 of -0.0012
104 -- init with non-float/double values --
105 PASS new PointerEvent('eventType', { height: '123abc' }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite..
106 PASS new PointerEvent('eventType', { height: 'dummy' }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite..
107 PASS new PointerEvent('eventType', { height: NaN }).height threw exception TypeE rror: Failed to construct 'PointerEvent': The provided double value is non-finit e..
108 PASS new PointerEvent('eventType', { height: null }).height is 0
109 PASS new PointerEvent('eventType', { height: undefined }).height is 1
110 PASS new PointerEvent('eventType', { height: [] }).height is 0
111 PASS new PointerEvent('eventType', { height: [12] }).height is 12
112 PASS new PointerEvent('eventType', { height: [12, 34] }).height threw exception TypeError: Failed to construct 'PointerEvent': The provided double value is non- finite..
113 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite ..
114 PASS new PointerEvent('eventType', { height: {abc:1} }).height threw exception T ypeError: Failed to construct 'PointerEvent': The provided double value is non-f inite..
115 PASS new PointerEvent('eventType', { height: {} }).height threw exception TypeEr ror: Failed to construct 'PointerEvent': The provided double value is non-finite ..
116 PASS new PointerEvent('eventType', { height: {valueOf: function () { return 123; }} }).height is 123
117 -- no init --
118 PASS new PointerEvent('eventType').pressure is 0
119 -- init with valid float/double values --
120 PASS new PointerEvent('eventType', { pressure: 123 }).pressure is 123
121 PASS new PointerEvent('eventType', { pressure: -123 }).pressure is -123
122 PASS new PointerEvent('eventType', { pressure: 123.45 }).pressure is within 0.00 001 of 123.45
123 PASS new PointerEvent('eventType', { pressure: -123.45 }).pressure is within 0.0 0001 of -123.45
124 PASS new PointerEvent('eventType', { pressure: 1.23e5 }).pressure is within 0.00 001 of 123000
125 PASS new PointerEvent('eventType', { pressure: -1.2e-3 }).pressure is within 0.0 0001 of -0.0012
126 -- init with non-float/double values --
127 PASS new PointerEvent('eventType', { pressure: '123abc' }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite..
128 PASS new PointerEvent('eventType', { pressure: 'dummy' }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite..
129 PASS new PointerEvent('eventType', { pressure: NaN }).pressure threw exception T ypeError: Failed to construct 'PointerEvent': The provided float value is non-fi nite..
130 PASS new PointerEvent('eventType', { pressure: null }).pressure is 0
131 PASS new PointerEvent('eventType', { pressure: undefined }).pressure is 0
132 PASS new PointerEvent('eventType', { pressure: [] }).pressure is 0
133 PASS new PointerEvent('eventType', { pressure: [12] }).pressure is 12
134 PASS new PointerEvent('eventType', { pressure: [12, 34] }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite..
135 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
136 PASS new PointerEvent('eventType', { pressure: {abc:1} }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite..
137 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
138 PASS new PointerEvent('eventType', { pressure: {valueOf: function () { return 12 3; }} }).pressure is 123
139 --- tests for inherited attributes ---
140 PASS new PointerEvent('eventType').bubbles is false
141 PASS new PointerEvent('eventType').cancelable is false
142 PASS new PointerEvent('eventType').view is null
143 PASS new PointerEvent('eventType').detail is 0
144 PASS new PointerEvent('eventType').screenX is 0
145 PASS new PointerEvent('eventType').screenY is 0
146 PASS new PointerEvent('eventType').clientX is 0
147 PASS new PointerEvent('eventType').clientY is 0
148 PASS new PointerEvent('eventType').ctrlKey is false
149 PASS new PointerEvent('eventType').shiftKey is false
150 PASS new PointerEvent('eventType').altKey is false
151 PASS new PointerEvent('eventType').metaKey is false
152 PASS new PointerEvent('eventType').button is 0
153 PASS new PointerEvent('eventType').buttons is 0
154 PASS new PointerEvent('eventType').relatedTarget is null
155 PASS successfullyParsed is true
156
157 TEST COMPLETE
158
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698