| This tests single touch event emulation using mouse events. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS 'ontouchstart' in window is true |
| PASS 'ontouchend' in document is true |
| PASS lastEvent.type is "touchstart" |
| PASS lastEvent.touches.length is 1 |
| PASS lastEvent.changedTouches.length is 1 |
| PASS lastEvent.targetTouches.length is 1 |
| PASS lastEvent.pageX is 0 |
| PASS lastEvent.pageY is 0 |
| PASS lastEvent.shiftKey is true |
| PASS lastEvent.altKey is true |
| PASS lastEvent.ctrlKey is false |
| PASS lastEvent.metaKey is false |
| PASS lastEvent.touches[0].target.id is "touchtarget" |
| PASS lastEvent.touches[0].pageX is 10 |
| PASS lastEvent.touches[0].pageY is 10 |
| PASS lastEvent.touches[0].clientX is 10 |
| PASS lastEvent.touches[0].clientY is 10 |
| PASS lastEvent.touches[0].identifier is 0 |
| PASS lastEvent.changedTouches[0].pageX is 10 |
| PASS lastEvent.changedTouches[0].pageY is 10 |
| PASS lastEvent.changedTouches[0].clientX is 10 |
| PASS lastEvent.changedTouches[0].clientY is 10 |
| PASS lastEvent.changedTouches[0].identifier is 0 |
| PASS lastEvent.targetTouches[0].pageX is 10 |
| PASS lastEvent.targetTouches[0].pageY is 10 |
| PASS lastEvent.targetTouches[0].clientX is 10 |
| PASS lastEvent.targetTouches[0].clientY is 10 |
| PASS lastEvent.targetTouches[0].identifier is 0 |
| PASS lastEvent.type is "touchmove" |
| PASS lastEvent.touches.length is 1 |
| PASS lastEvent.changedTouches.length is 1 |
| PASS lastEvent.targetTouches.length is 1 |
| PASS lastEvent.pageX is 0 |
| PASS lastEvent.pageY is 0 |
| PASS lastEvent.touches[0].pageX is 20 |
| PASS lastEvent.touches[0].pageY is 30 |
| PASS lastEvent.touches[0].clientX is 20 |
| PASS lastEvent.touches[0].clientY is 30 |
| PASS lastEvent.touches[0].identifier is 0 |
| PASS lastEvent.type is "touchend" |
| PASS lastEvent.touches.length is 0 |
| PASS lastEvent.changedTouches.length is 1 |
| PASS lastEvent.targetTouches.length is 0 |
| PASS lastEvent.pageX is 0 |
| PASS lastEvent.pageY is 0 |
| PASS lastEvent.changedTouches[0].pageX is 20 |
| PASS lastEvent.changedTouches[0].pageY is 30 |
| PASS lastEvent.changedTouches[0].clientX is 20 |
| PASS lastEvent.changedTouches[0].clientY is 30 |
| PASS lastEvent.changedTouches[0].identifier is 0 |
| PASS lastEvent.shiftKey is false |
| PASS lastEvent.altKey is true |
| PASS lastEvent.ctrlKey is true |
| PASS lastEvent.metaKey is false |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |