2012-01-27 19:06:41 +00:00
|
|
|
Test mouse events are routed to lock target.
|
|
|
|
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
|
|
|
2014-07-08 22:36:24 +00:00
|
|
|
PASS document.onpointerlockchange event received.
|
|
|
|
PASS document.pointerLockElement is targetdiv1
|
2017-02-03 21:56:43 +00:00
|
|
|
With a lock in place send a wheel event.
|
|
|
|
PASS event type: wheel, target: target1, received on: target1
|
|
|
|
PASS event type: wheel, target: target1, received on: body
|
2017-02-04 03:03:39 +00:00
|
|
|
With a lock in place move the mouse.
|
|
|
|
PASS event type: mousemove, movementX: 25, movementY: -30, target: target1, received on: target1
|
|
|
|
PASS event type: mousemove, movementX: 25, movementY: -30, target: target1, received on: body
|
2012-06-15 19:53:27 +00:00
|
|
|
With a lock in place send a click.
|
2012-01-27 19:06:41 +00:00
|
|
|
PASS event type: mousedown, target: target1, received on: target1
|
|
|
|
PASS event type: mousedown, target: target1, received on: body
|
2014-07-08 22:36:24 +00:00
|
|
|
PASS document.onpointerlockchange event received.
|
|
|
|
PASS document.pointerLockElement is targetdiv2
|
2017-02-03 21:56:43 +00:00
|
|
|
With a lock in place send a wheel event.
|
|
|
|
PASS event type: wheel, target: target2, received on: target2
|
|
|
|
PASS event type: wheel, target: target2, received on: body
|
2012-06-15 19:53:27 +00:00
|
|
|
With a lock in place send a click.
|
2012-01-27 19:06:41 +00:00
|
|
|
PASS event type: mousedown, target: target2, received on: target2
|
|
|
|
PASS event type: mousedown, target: target2, received on: body
|
2012-06-15 19:53:27 +00:00
|
|
|
Ensure double clicks work as expected, sending 4 clicks.
|
|
|
|
Creating a click and dblclick.
|
2012-01-27 19:06:41 +00:00
|
|
|
PASS event type: mousedown, target: target2, received on: target2
|
|
|
|
PASS event type: mouseup, target: target2, received on: target2
|
|
|
|
PASS event type: click, target: target2, received on: target2
|
|
|
|
PASS event type: mousedown, target: target2, received on: target2
|
|
|
|
PASS event type: mouseup, target: target2, received on: target2
|
|
|
|
PASS event type: click, target: target2, received on: target2
|
|
|
|
PASS event type: dblclick, target: target2, received on: target2
|
2012-06-15 19:53:27 +00:00
|
|
|
Ensuring no false dblclicks if we continue.
|
2012-01-27 19:06:41 +00:00
|
|
|
PASS event type: mousedown, target: target2, received on: target2
|
|
|
|
PASS event type: mouseup, target: target2, received on: target2
|
|
|
|
PASS event type: click, target: target2, received on: target2
|
|
|
|
PASS event type: mousedown, target: target2, received on: target2
|
|
|
|
PASS event type: mouseup, target: target2, received on: target2
|
|
|
|
PASS event type: click, target: target2, received on: target2
|
|
|
|
PASS successfullyParsed is true
|
|
|
|
|
|
|
|
TEST COMPLETE
|
|
|
|
|