Description
This test validates that the pointer properly be locked in a DOM element, and exit afterwards.
Manual Test Steps:
- Click the "Lock Target" to test if requestPointerLock() and exitPointerLock() causing a pointerlockchange event.
- Confirm the lock with a user action (in Firefox).
- Exit the pointer lock with a user action (usually 'esc'), to test if the cursor is at the same location.
- Click the "ReEnterLock" to test that no engagement gesture is required to reenter pointer lock if pointer lock is exited via exitPointerLock.
- Exit the pointer lock with a user action (usually 'esc').
- Click the "RepeatLock" to validate that each requestPointerLock() will fire a pointerlockchange event.
- Exit the pointer lock with a user action (usually 'esc').
Waiting... Please click the "Lock Target" button.
Target