OLD | NEW |
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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 PASS new PointerEvent('eventType').cancelable is false | 253 PASS new PointerEvent('eventType').cancelable is false |
254 PASS new PointerEvent('eventType').view is null | 254 PASS new PointerEvent('eventType').view is null |
255 PASS new PointerEvent('eventType').detail is 0 | 255 PASS new PointerEvent('eventType').detail is 0 |
256 PASS new PointerEvent('eventType').ctrlKey is false | 256 PASS new PointerEvent('eventType').ctrlKey is false |
257 PASS new PointerEvent('eventType').shiftKey is false | 257 PASS new PointerEvent('eventType').shiftKey is false |
258 PASS new PointerEvent('eventType').altKey is false | 258 PASS new PointerEvent('eventType').altKey is false |
259 PASS new PointerEvent('eventType').metaKey is false | 259 PASS new PointerEvent('eventType').metaKey is false |
260 PASS new PointerEvent('eventType').button is 0 | 260 PASS new PointerEvent('eventType').button is 0 |
261 PASS new PointerEvent('eventType').buttons is 0 | 261 PASS new PointerEvent('eventType').buttons is 0 |
262 PASS new PointerEvent('eventType').relatedTarget is null | 262 PASS new PointerEvent('eventType').relatedTarget is null |
| 263 --- tests for coalesced events --- |
| 264 PASS pe.getCoalescedEvents().length is 2 |
| 265 PASS pe.pressure is within 0.00001 of 0.1 |
| 266 PASS pe.getCoalescedEvents()[0].pressure is within 0.00001 of 1 |
| 267 PASS pe.getCoalescedEvents()[1].pressure is within 0.00001 of 0.5 |
| 268 PASS pe.pointerId is 1 |
| 269 PASS pe.getCoalescedEvents()[0].pointerId is 2 |
| 270 PASS pe.getCoalescedEvents()[1].pointerId is 2 |
263 PASS successfullyParsed is true | 271 PASS successfullyParsed is true |
264 | 272 |
265 TEST COMPLETE | 273 TEST COMPLETE |
266 | 274 |
OLD | NEW |