| OLD | NEW |
| 1 var All_Pointer_Events = [ | 1 var All_Pointer_Events = [ |
| 2 "pointerdown", | 2 "pointerdown", |
| 3 "pointerup", | 3 "pointerup", |
| 4 "pointercancel", | 4 "pointercancel", |
| 5 "pointermove", | 5 "pointermove", |
| 6 "pointerover", | 6 "pointerover", |
| 7 "pointerout", | 7 "pointerout", |
| 8 "pointerenter", | 8 "pointerenter", |
| 9 "pointerleave", | 9 "pointerleave", |
| 10 "gotpointercapture", | 10 "gotpointercapture", |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 try { | 191 try { |
| 192 captureButton.value = 'Set Capture'; | 192 captureButton.value = 'Set Capture'; |
| 193 target0.releasePointerCapture(e.pointerId); | 193 target0.releasePointerCapture(e.pointerId); |
| 194 } | 194 } |
| 195 catch(e) { | 195 catch(e) { |
| 196 } | 196 } |
| 197 } | 197 } |
| 198 | 198 |
| 199 var globalPointerEventTest = null; | 199 var globalPointerEventTest = null; |
| 200 var expectedPointerType = null; | 200 var expectedPointerType = null; |
| 201 var HOVERABLE_POINTERS = ['mouse', 'pen']; | 201 const HOVERABLE_POINTERS = ['mouse', 'pen']; |
| 202 const NOHOVER_POINTERS = ['touch']; |
| 202 | 203 |
| 203 function MultiPointerTypeTest(testName, types) { | 204 function MultiPointerTypeTest(testName, types) { |
| 204 this.testName = testName; | 205 this.testName = testName; |
| 205 this.types = types; | 206 this.types = types; |
| 206 this.currentTypeIndex = 0; | 207 this.currentTypeIndex = 0; |
| 207 this.currentTest = null; | 208 this.currentTest = null; |
| 208 this.createNextTest(); | 209 this.createNextTest(); |
| 209 } | 210 } |
| 210 | 211 |
| 211 MultiPointerTypeTest.prototype.skip = function() { | 212 MultiPointerTypeTest.prototype.skip = function() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 231 } else { | 232 } else { |
| 232 document.getElementById('pointerTypeDescription').innerHTML = ""; | 233 document.getElementById('pointerTypeDescription').innerHTML = ""; |
| 233 } | 234 } |
| 234 resetTestState(); | 235 resetTestState(); |
| 235 } | 236 } |
| 236 | 237 |
| 237 | 238 |
| 238 function setup_pointerevent_test(testName, supportedPointerTypes) { | 239 function setup_pointerevent_test(testName, supportedPointerTypes) { |
| 239 return globalPointerEventTest = new MultiPointerTypeTest(testName, supportedP
ointerTypes); | 240 return globalPointerEventTest = new MultiPointerTypeTest(testName, supportedP
ointerTypes); |
| 240 } | 241 } |
| OLD | NEW |