From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001
From: "Matt A. Tobin"
Date: Fri, 2 Feb 2018 04:16:08 -0500
Subject: Add m-esr52 at 52.6.0
---
testing/web-platform/tests/pointerlock/OWNERS | 2 +
.../tests/pointerlock/constructor.html | 53 +++++++
.../web-platform/tests/pointerlock/idlharness.html | 85 ++++++++++
.../pointerlock/movementX_Y_basic-manual.html | 124 +++++++++++++++
.../pointerlock/movementX_Y_no-jumps-manual.html | 140 +++++++++++++++++
.../pointerlock/pointerlock_basic-manual.html | 149 ++++++++++++++++++
.../pointerlock/pointerlock_fullscreen-manual.html | 173 +++++++++++++++++++++
.../pointerlock/pointerlock_indefinite-manual.html | 107 +++++++++++++
.../pointerlock/pointerlock_leave_Tab-manual.html | 85 ++++++++++
.../pointerlock/pointerlock_leave_UA-manual.html | 85 ++++++++++
.../pointerlock_remove_target-manual.html | 87 +++++++++++
.../pointerlock/pointerlock_shadow-manual.html | 83 ++++++++++
12 files changed, 1173 insertions(+)
create mode 100644 testing/web-platform/tests/pointerlock/OWNERS
create mode 100644 testing/web-platform/tests/pointerlock/constructor.html
create mode 100644 testing/web-platform/tests/pointerlock/idlharness.html
create mode 100644 testing/web-platform/tests/pointerlock/movementX_Y_basic-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/movementX_Y_no-jumps-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_basic-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_fullscreen-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_indefinite-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_leave_Tab-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_leave_UA-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_remove_target-manual.html
create mode 100644 testing/web-platform/tests/pointerlock/pointerlock_shadow-manual.html
(limited to 'testing/web-platform/tests/pointerlock')
diff --git a/testing/web-platform/tests/pointerlock/OWNERS b/testing/web-platform/tests/pointerlock/OWNERS
new file mode 100644
index 000000000..640884d64
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/OWNERS
@@ -0,0 +1,2 @@
+@scheib
+@siusin
\ No newline at end of file
diff --git a/testing/web-platform/tests/pointerlock/constructor.html b/testing/web-platform/tests/pointerlock/constructor.html
new file mode 100644
index 000000000..8c43cf6da
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/constructor.html
@@ -0,0 +1,53 @@
+
+
+
+
+ Pointer Lock event constructor
+
+
+
+
+
+
+ Create Pointer Lock events and check each default value.
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/idlharness.html b/testing/web-platform/tests/pointerlock/idlharness.html
new file mode 100644
index 000000000..aa876f58f
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/idlharness.html
@@ -0,0 +1,85 @@
+
+
+
+
+Pointer Lock IDL tests
+
+
+
+
+
+
+
+
+
+
+
+Pointer Lock IDL tests
+
+
+
+interface EventTarget {
+};
+
+interface Node : EventTarget {
+};
+
+interface Element : Node {
+};
+
+interface Document : Node {
+};
+
+interface Event {
+};
+
+interface MouseEvent : Event {
+};
+
+
+
+
+partial interface Element {
+ void requestPointerLock ();
+};
+
+partial interface Document {
+ attribute EventHandler onpointerlockchange;
+ attribute EventHandler onpointerlockerror;
+ readonly attribute Element? pointerLockElement;
+ void exitPointerLock ();
+};
+
+partial interface MouseEvent {
+ readonly attribute long movementX;
+ readonly attribute long movementY;
+};
+
+partial dictionary MouseEventInit {
+ long movementX = 0;
+ long movementY = 0;
+};
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/movementX_Y_basic-manual.html b/testing/web-platform/tests/pointerlock/movementX_Y_basic-manual.html
new file mode 100644
index 000000000..1e8fc1f53
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/movementX_Y_basic-manual.html
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test if movementX/Y can provide the change in position of the pointer, as if movementX/Y = eNow.screenX/Y-ePrevious.screenX/Y
+
+
+ Manual Test Steps:
+
+
+ Click to start Test1.
+ Move the mouse within the window, slow and fast, like a scribble.
+ Click again to end test.
+
+
+
+
+ Waiting... Click to start loging.
+
+
+ X Y
+ client_init: X Y
+ client_last: X Y
+ client_delta: X Y
+ movement_sum: X Y
+ movement: X Y
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/movementX_Y_no-jumps-manual.html b/testing/web-platform/tests/pointerlock/movementX_Y_no-jumps-manual.html
new file mode 100644
index 000000000..9c8fabd28
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/movementX_Y_no-jumps-manual.html
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test that movementX/Y do not jump by a large value when exiting and re-entering the window.
+
+
+ Manual Test Steps:
+
+
+ Make sure the window is not maximized.
+ Click to start Test.
+ Move the mouse slowly out of the window.
+ Move as fast as needed to a different location outside the window at least 100 pixels away
+ Slowly re-enter the window.
+ Click again to end tests.
+
+
+
+
+ Waiting... Click to start loging.
+
+
+ X Y
+ client_init: X Y
+ client_last: X Y
+ client_delta: X Y
+ movement_sum: X Y
+ movement: X Y
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_basic-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_basic-manual.html
new file mode 100644
index 000000000..d926318ab
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_basic-manual.html
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
+
+
+ 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').
+
+
+
+
+ Lock Target
+ ReEnter Lock
+ Repeat Lock
+ Waiting... Please click the "Lock Target" button.
+ Target
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_fullscreen-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_fullscreen-manual.html
new file mode 100644
index 000000000..7ce91ad16
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_fullscreen-manual.html
@@ -0,0 +1,173 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test validates that pointer lock won't be exited when fullscreen is entered or exited, unless fullscreen is exited with the same user gesture as pointer lock.
+
+
+ Manual Test Steps:
+
+
+ Click the "scriptExitFullscreen" button.
+ If the exitFullscreen doesn't work, use the menu (or any other interaction except for the "esc" key) to exit fullscreen.
+ First test case done.
+ Click the "gestureExitFullscreen" button.
+ Use the "esc" key to exit fullscreen.
+ Second test case done.
+
+
+
+
+ scriptExitFullscreen
+ gestureExitFullscreen
+
+
+
Waiting... Please click the "scriptExitFullscreen" button.
+
Target
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_indefinite-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_indefinite-manual.html
new file mode 100644
index 000000000..0db1227ad
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_indefinite-manual.html
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test validates that movementX/Y provided indefinitely even when the mouse cursor would have otherwise hit the edge of a screen.
+
+
+ Manual Test Steps:
+
+
+ Click the "lockTarget" button to request a pointer lock.
+ Move the pointer constantly in a diagonal direction (e.g. up and right).
+ Test is done.
+
+
+
+
+ lockTarget
+
+
+
Click the "lockTarget" button.
+
screenSize: NaN
+
movementX_sum: NaN
+
movementY_sum: NaN
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_leave_Tab-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_leave_Tab-manual.html
new file mode 100644
index 000000000..198e2fe63
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_leave_Tab-manual.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test validates that pointer lock will be lost the user agent / window loses focus.
+
+
+ Manual Test Steps:
+
+
+ Click the "lockTarget" button to request a pointer lock.
+ Focus to another tab with keyboard (Ctrl-TAB).
+ Test is done.
+
+
+
+
+ lockTarget
+
+
+
Click the "lockTarget" button.
+
Target
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_leave_UA-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_leave_UA-manual.html
new file mode 100644
index 000000000..e14400844
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_leave_UA-manual.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test validates that pointer lock will be lost the user agent / window loses focus.
+
+
+ Manual Test Steps:
+
+
+ Click the "lockTarget" button to request a pointer lock.
+ Focus to another window with keyboard (ALT-TAB).
+ Test is done.
+
+
+
+
+ lockTarget
+
+
+
Click the "lockTarget" button.
+
Target
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_remove_target-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_remove_target-manual.html
new file mode 100644
index 000000000..210365090
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_remove_target-manual.html
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+ Description
+ This test validates that pointer lock will be lost when the target is disconnected.
+
+
+ Manual Test Steps:
+
+
+ Click the "lockTarget" button to request a pointer lock.
+ Test is done.
+
+
+
+
+ lockTarget
+
+
+
Click the "lockTarget" button.
+
Target
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/pointerlock/pointerlock_shadow-manual.html b/testing/web-platform/tests/pointerlock/pointerlock_shadow-manual.html
new file mode 100644
index 000000000..e7893c33b
--- /dev/null
+++ b/testing/web-platform/tests/pointerlock/pointerlock_shadow-manual.html
@@ -0,0 +1,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Description
+
Click the button below to trigger pointer lock on an element in a shadow root.
+
Click Me!
+
+
+
--
cgit v1.2.3