blob: 83b21b7cae093a52d05805bb8efa528a0bf52a63 [file] [log] [blame]
This tests multi touch event support where one of the touches has no touch event handler.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
multi touch sequence
Two touchpoints, 1 in the target, 1 on the body without a target
PASS lastEvent.type is "touchstart"
PASS lastEvent.touches.length is 2
PASS lastEvent.changedTouches.length is 1
PASS lastEvent.targetTouches.length is 1
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.touches[1].pageX is 200
PASS lastEvent.touches[1].pageY is 200
PASS lastEvent.touches[1].clientX is 200
PASS lastEvent.touches[1].clientY is 200
PASS lastEvent.touches[1].identifier is 1
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
First touchpoint moved
PASS lastEvent.type is "touchmove"
PASS lastEvent.touches.length is 2
PASS lastEvent.changedTouches.length is 1
PASS lastEvent.targetTouches.length is 1
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.touches[1].pageX is 200
PASS lastEvent.touches[1].pageY is 200
PASS lastEvent.touches[1].clientX is 200
PASS lastEvent.touches[1].clientY is 200
PASS lastEvent.touches[1].identifier is 1
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
Second touchpoint moved
First touchpoint is released
PASS lastEvent.type is "touchend"
PASS lastEvent.touches.length is 1
PASS lastEvent.changedTouches.length is 1
PASS lastEvent.targetTouches.length is 0
PASS lastEvent.touches[0].pageX is 150
PASS lastEvent.touches[0].pageY is 150
PASS lastEvent.touches[0].clientX is 150
PASS lastEvent.touches[0].clientY is 150
PASS lastEvent.touches[0].identifier is 1
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 successfullyParsed is true
TEST COMPLETE