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 --- | 6 --- tests for intrinsic attributes --- |
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: 123 }).pointerId is 123 | 10 PASS new PointerEvent('eventType', { pointerId: 123 }).pointerId is 123 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 PASS new PointerEvent('eventType').screenY is 0 | 145 PASS new PointerEvent('eventType').screenY is 0 |
146 PASS new PointerEvent('eventType').clientX is 0 | 146 PASS new PointerEvent('eventType').clientX is 0 |
147 PASS new PointerEvent('eventType').clientY is 0 | 147 PASS new PointerEvent('eventType').clientY is 0 |
148 PASS new PointerEvent('eventType').ctrlKey is false | 148 PASS new PointerEvent('eventType').ctrlKey is false |
149 PASS new PointerEvent('eventType').shiftKey is false | 149 PASS new PointerEvent('eventType').shiftKey is false |
150 PASS new PointerEvent('eventType').altKey is false | 150 PASS new PointerEvent('eventType').altKey is false |
151 PASS new PointerEvent('eventType').metaKey is false | 151 PASS new PointerEvent('eventType').metaKey is false |
152 PASS new PointerEvent('eventType').button is 0 | 152 PASS new PointerEvent('eventType').button is 0 |
153 PASS new PointerEvent('eventType').buttons is 0 | 153 PASS new PointerEvent('eventType').buttons is 0 |
154 PASS new PointerEvent('eventType').relatedTarget is null | 154 PASS new PointerEvent('eventType').relatedTarget is null |
| 155 --- tests for coalesced events --- |
| 156 PASS pe.getCoalescedEvents().length is 2 |
| 157 PASS pe.pressure is within 0.00001 of 0.1 |
| 158 PASS pe.getCoalescedEvents()[0].pressure is within 0.00001 of 1 |
| 159 PASS pe.getCoalescedEvents()[1].pressure is within 0.00001 of 0.5 |
| 160 PASS pe.pointerId is 1 |
| 161 PASS pe.getCoalescedEvents()[0].pointerId is 2 |
| 162 PASS pe.getCoalescedEvents()[1].pointerId is 2 |
155 PASS successfullyParsed is true | 163 PASS successfullyParsed is true |
156 | 164 |
157 TEST COMPLETE | 165 TEST COMPLETE |
158 | 166 |
OLD | NEW |