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

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

Issue 2587393004: Add tangentialPressure and twist properties to PointerEvent on Mac (Closed)
Patch Set: rebase Created 3 years, 11 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 PointerEvent DOM class. 1 This tests the constructor for the PointerEvent 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 --- tests for intrinsic attributes plus screen & client coordinates --- 6 --- tests for intrinsic attributes plus screen & client coordinates ---
7 -- no init -- 7 -- no init --
8 PASS new PointerEvent('eventType').pointerId is 0 8 PASS new PointerEvent('eventType').pointerId is 0
9 -- init with valid long values -- 9 -- init with valid long values --
10 PASS new PointerEvent('eventType', { pointerId: 0 }).pointerId is 0 10 PASS new PointerEvent('eventType', { pointerId: 0 }).pointerId is 0
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 PASS new PointerEvent('eventType', { tiltY: null }).tiltY is 0 67 PASS new PointerEvent('eventType', { tiltY: null }).tiltY is 0
68 PASS new PointerEvent('eventType', { tiltY: undefined }).tiltY is 0 68 PASS new PointerEvent('eventType', { tiltY: undefined }).tiltY is 0
69 PASS new PointerEvent('eventType', { tiltY: [] }).tiltY is 0 69 PASS new PointerEvent('eventType', { tiltY: [] }).tiltY is 0
70 PASS new PointerEvent('eventType', { tiltY: [12] }).tiltY is 12 70 PASS new PointerEvent('eventType', { tiltY: [12] }).tiltY is 12
71 PASS new PointerEvent('eventType', { tiltY: [12, 34] }).tiltY is 0 71 PASS new PointerEvent('eventType', { tiltY: [12, 34] }).tiltY is 0
72 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0 72 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
73 PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0 73 PASS new PointerEvent('eventType', { tiltY: {abc:1} }).tiltY is 0
74 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0 74 PASS new PointerEvent('eventType', { tiltY: {} }).tiltY is 0
75 PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123 75 PASS new PointerEvent('eventType', { tiltY: {valueOf: function () { return 123; }} }).tiltY is 123
76 -- no init -- 76 -- no init --
77 PASS new PointerEvent('eventType').twist is 0
78 -- init with valid long values --
79 PASS new PointerEvent('eventType', { twist: 0 }).twist is 0
80 PASS new PointerEvent('eventType', { twist: 123 }).twist is 123
81 PASS new PointerEvent('eventType', { twist: -123 }).twist is -123
82 PASS new PointerEvent('eventType', { twist: 2147483647 }).twist is 2147483647
83 PASS new PointerEvent('eventType', { twist: -2147483648 }).twist is -2147483648
84 -- init with non-long values --
85 PASS new PointerEvent('eventType', { twist: 18446744073709551615 }).twist is 0
86 PASS new PointerEvent('eventType', {twist: 123.45 }).twist is 123
87 PASS new PointerEvent('eventType', { twist: '123abc' }).twist is 0
88 PASS new PointerEvent('eventType', { twist: 'dummy' }).twist is 0
89 PASS new PointerEvent('eventType', { twist: NaN }).twist is 0
90 PASS new PointerEvent('eventType', { twist: null }).twist is 0
91 PASS new PointerEvent('eventType', { twist: undefined }).twist is 0
92 PASS new PointerEvent('eventType', { twist: [] }).twist is 0
93 PASS new PointerEvent('eventType', { twist: [12] }).twist is 12
94 PASS new PointerEvent('eventType', { twist: [12, 34] }).twist is 0
95 PASS new PointerEvent('eventType', { twist: {} }).twist is 0
96 PASS new PointerEvent('eventType', { twist: {abc:1} }).twist is 0
97 PASS new PointerEvent('eventType', { twist: {} }).twist is 0
98 PASS new PointerEvent('eventType', { twist: {valueOf: function () { return 123; }} }).twist is 123
99 -- no init --
77 PASS new PointerEvent('eventType').width is 1 100 PASS new PointerEvent('eventType').width is 1
78 -- init with valid float/double values -- 101 -- init with valid float/double values --
79 PASS new PointerEvent('eventType', { width: 0 }).width is 0 102 PASS new PointerEvent('eventType', { width: 0 }).width is 0
80 PASS new PointerEvent('eventType', { width: 123 }).width is 123 103 PASS new PointerEvent('eventType', { width: 123 }).width is 123
81 PASS new PointerEvent('eventType', { width: -123 }).width is -123 104 PASS new PointerEvent('eventType', { width: -123 }).width is -123
82 PASS new PointerEvent('eventType', { width: 123.45 }).width is within 0.00001 of 123.45 105 PASS new PointerEvent('eventType', { width: 123.45 }).width is within 0.00001 of 123.45
83 PASS new PointerEvent('eventType', { width: -123.45 }).width is within 0.00001 o f -123.45 106 PASS new PointerEvent('eventType', { width: -123.45 }).width is within 0.00001 o f -123.45
84 PASS new PointerEvent('eventType', { width: 1.23e5 }).width is within 0.00001 of 123000 107 PASS new PointerEvent('eventType', { width: 1.23e5 }).width is within 0.00001 of 123000
85 PASS new PointerEvent('eventType', { width: -1.2e-3 }).width is within 0.00001 o f -0.0012 108 PASS new PointerEvent('eventType', { width: -1.2e-3 }).width is within 0.00001 o f -0.0012
86 PASS new PointerEvent('eventType', { width: 16777215 }).width is 16777215 109 PASS new PointerEvent('eventType', { width: 16777215 }).width is 16777215
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 PASS new PointerEvent('eventType', { pressure: null }).pressure is 0 165 PASS new PointerEvent('eventType', { pressure: null }).pressure is 0
143 PASS new PointerEvent('eventType', { pressure: undefined }).pressure is 0 166 PASS new PointerEvent('eventType', { pressure: undefined }).pressure is 0
144 PASS new PointerEvent('eventType', { pressure: [] }).pressure is 0 167 PASS new PointerEvent('eventType', { pressure: [] }).pressure is 0
145 PASS new PointerEvent('eventType', { pressure: [12] }).pressure is 12 168 PASS new PointerEvent('eventType', { pressure: [12] }).pressure is 12
146 PASS new PointerEvent('eventType', { pressure: [12, 34] }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite.. 169 PASS new PointerEvent('eventType', { pressure: [12, 34] }).pressure threw except ion TypeError: Failed to construct 'PointerEvent': The provided float value is n on-finite..
147 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite.. 170 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
148 PASS new PointerEvent('eventType', { pressure: {abc:1} }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite.. 171 PASS new PointerEvent('eventType', { pressure: {abc:1} }).pressure threw excepti on TypeError: Failed to construct 'PointerEvent': The provided float value is no n-finite..
149 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite.. 172 PASS new PointerEvent('eventType', { pressure: {} }).pressure threw exception Ty peError: Failed to construct 'PointerEvent': The provided float value is non-fin ite..
150 PASS new PointerEvent('eventType', { pressure: {valueOf: function () { return 12 3; }} }).pressure is 123 173 PASS new PointerEvent('eventType', { pressure: {valueOf: function () { return 12 3; }} }).pressure is 123
151 -- no init -- 174 -- no init --
175 PASS new PointerEvent('eventType').tangentialPressure is 0
176 -- init with valid float/double values --
177 PASS new PointerEvent('eventType', { tangentialPressure: 0 }).tangentialPressure is 0
178 PASS new PointerEvent('eventType', { tangentialPressure: 123 }).tangentialPressu re is 123
179 PASS new PointerEvent('eventType', { tangentialPressure: -123 }).tangentialPress ure is -123
180 PASS new PointerEvent('eventType', { tangentialPressure: 123.45 }).tangentialPre ssure is within 0.00001 of 123.45
181 PASS new PointerEvent('eventType', { tangentialPressure: -123.45 }).tangentialPr essure is within 0.00001 of -123.45
182 PASS new PointerEvent('eventType', { tangentialPressure: 1.23e5 }).tangentialPre ssure is within 0.00001 of 123000
183 PASS new PointerEvent('eventType', { tangentialPressure: -1.2e-3 }).tangentialPr essure is within 0.00001 of -0.0012
184 PASS new PointerEvent('eventType', { tangentialPressure: 16777215 }).tangentialP ressure is 16777215
185 PASS new PointerEvent('eventType', { tangentialPressure: -16777216 }).tangential Pressure is -16777216
186 -- init with non-float/double values --
187 PASS new PointerEvent('eventType', { tangentialPressure: '123abc' }).tangentialP ressure threw exception TypeError: Failed to construct 'PointerEvent': The provi ded float value is non-finite..
188 PASS new PointerEvent('eventType', { tangentialPressure: 'dummy' }).tangentialPr essure threw exception TypeError: Failed to construct 'PointerEvent': The provid ed float value is non-finite..
189 PASS new PointerEvent('eventType', { tangentialPressure: NaN }).tangentialPressu re threw exception TypeError: Failed to construct 'PointerEvent': The provided f loat value is non-finite..
190 PASS new PointerEvent('eventType', { tangentialPressure: null }).tangentialPress ure is 0
191 PASS new PointerEvent('eventType', { tangentialPressure: undefined }).tangential Pressure is 0
192 PASS new PointerEvent('eventType', { tangentialPressure: [] }).tangentialPressur e is 0
193 PASS new PointerEvent('eventType', { tangentialPressure: [12] }).tangentialPress ure is 12
194 PASS new PointerEvent('eventType', { tangentialPressure: [12, 34] }).tangentialP ressure threw exception TypeError: Failed to construct 'PointerEvent': The provi ded float value is non-finite..
195 PASS new PointerEvent('eventType', { tangentialPressure: {} }).tangentialPressur e threw exception TypeError: Failed to construct 'PointerEvent': The provided fl oat value is non-finite..
196 PASS new PointerEvent('eventType', { tangentialPressure: {abc:1} }).tangentialPr essure threw exception TypeError: Failed to construct 'PointerEvent': The provid ed float value is non-finite..
197 PASS new PointerEvent('eventType', { tangentialPressure: {} }).tangentialPressur e threw exception TypeError: Failed to construct 'PointerEvent': The provided fl oat value is non-finite..
198 PASS new PointerEvent('eventType', { tangentialPressure: {valueOf: function () { return 123; }} }).tangentialPressure is 123
199 -- no init --
152 PASS new PointerEvent('eventType').screenX is 0 200 PASS new PointerEvent('eventType').screenX is 0
153 -- init with valid float/double values -- 201 -- init with valid float/double values --
154 PASS new PointerEvent('eventType', { screenX: 0 }).screenX is 0 202 PASS new PointerEvent('eventType', { screenX: 0 }).screenX is 0
155 PASS new PointerEvent('eventType', { screenX: 123 }).screenX is 123 203 PASS new PointerEvent('eventType', { screenX: 123 }).screenX is 123
156 PASS new PointerEvent('eventType', { screenX: -123 }).screenX is -123 204 PASS new PointerEvent('eventType', { screenX: -123 }).screenX is -123
157 PASS new PointerEvent('eventType', { screenX: 123.45 }).screenX is within 0.0000 1 of 123.45 205 PASS new PointerEvent('eventType', { screenX: 123.45 }).screenX is within 0.0000 1 of 123.45
158 PASS new PointerEvent('eventType', { screenX: -123.45 }).screenX is within 0.000 01 of -123.45 206 PASS new PointerEvent('eventType', { screenX: -123.45 }).screenX is within 0.000 01 of -123.45
159 PASS new PointerEvent('eventType', { screenX: 1.23e5 }).screenX is within 0.0000 1 of 123000 207 PASS new PointerEvent('eventType', { screenX: 1.23e5 }).screenX is within 0.0000 1 of 123000
160 PASS new PointerEvent('eventType', { screenX: -1.2e-3 }).screenX is within 0.000 01 of -0.0012 208 PASS new PointerEvent('eventType', { screenX: -1.2e-3 }).screenX is within 0.000 01 of -0.0012
161 PASS new PointerEvent('eventType', { screenX: 16777215 }).screenX is 16777215 209 PASS new PointerEvent('eventType', { screenX: 16777215 }).screenX is 16777215
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 PASS pe.pressure is within 0.00001 of 0.1 313 PASS pe.pressure is within 0.00001 of 0.1
266 PASS pe.getCoalescedEvents()[0].pressure is within 0.00001 of 1 314 PASS pe.getCoalescedEvents()[0].pressure is within 0.00001 of 1
267 PASS pe.getCoalescedEvents()[1].pressure is within 0.00001 of 0.5 315 PASS pe.getCoalescedEvents()[1].pressure is within 0.00001 of 0.5
268 PASS pe.pointerId is 1 316 PASS pe.pointerId is 1
269 PASS pe.getCoalescedEvents()[0].pointerId is 2 317 PASS pe.getCoalescedEvents()[0].pointerId is 2
270 PASS pe.getCoalescedEvents()[1].pointerId is 2 318 PASS pe.getCoalescedEvents()[1].pointerId is 2
271 PASS successfullyParsed is true 319 PASS successfullyParsed is true
272 320
273 TEST COMPLETE 321 TEST COMPLETE
274 322
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698