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

+ + + +
+
+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:

+

+

    +
  1. Click to start Test1.
  2. +
  3. Move the mouse within the window, slow and fast, like a scribble.
  4. +
  5. Click again to end test.
  6. +
+

+
+ +
Waiting... Click to start loging.
+
+ + + + + + + +
XY
client_init:XY
client_last:XY
client_delta:XY
movement_sum:XY
movement:XY
+
+
+ +
+ + + + 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:

+

+

    +
  1. Make sure the window is not maximized.
  2. +
  3. Click to start Test.
  4. +
  5. Move the mouse slowly out of the window. +
  6. Move as fast as needed to a different location outside the window at least 100 pixels away
  7. +
  8. Slowly re-enter the window.
  9. +
  10. Click again to end tests.
  11. +
+

+
+ +
Waiting... Click to start loging.
+
+ + + + + + + +
XY
client_init:XY
client_last:XY
client_delta:XY
movement_sum:XY
movement:XY
+
+
+ +
+ + + + 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:

+

+

    +
  1. Click the "Lock Target" to test if requestPointerLock() and exitPointerLock() causing a pointerlockchange event.
  2. +
  3. Confirm the lock with a user action (in Firefox).
  4. +
  5. Exit the pointer lock with a user action (usually 'esc'), to test if the cursor is at the same location.
  6. +
  7. Click the "ReEnterLock" to test that no engagement gesture is required to reenter pointer lock if pointer lock is exited via exitPointerLock.
  8. +
  9. Exit the pointer lock with a user action (usually 'esc').
  10. +
  11. Click the "RepeatLock" to validate that each requestPointerLock() will fire a pointerlockchange event.
  12. +
  13. Exit the pointer lock with a user action (usually 'esc').
  14. +
+

+
+ + + + +
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:

+

+

    +
  1. Click the "scriptExitFullscreen" button.
  2. +
  3. If the exitFullscreen doesn't work, use the menu (or any other interaction except for the "esc" key) to exit fullscreen.
  4. +
  5. First test case done.
  6. +
  7. Click the "gestureExitFullscreen" button.
  8. +
  9. Use the "esc" key to exit fullscreen.
  10. +
  11. Second test case done.
  12. +
+

+
+ + + + +
+
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:

+

+

    +
  1. Click the "lockTarget" button to request a pointer lock.
  2. +
  3. Move the pointer constantly in a diagonal direction (e.g. up and right).
  4. +
  5. Test is done.
  6. +
+

+
+ + + +
+
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:

+

+

    +
  1. Click the "lockTarget" button to request a pointer lock.
  2. +
  3. Focus to another tab with keyboard (Ctrl-TAB).
  4. +
  5. Test is done.
  6. +
+

+
+ + + +
+
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:

+

+

    +
  1. Click the "lockTarget" button to request a pointer lock.
  2. +
  3. Focus to another window with keyboard (ALT-TAB).
  4. +
  5. Test is done.
  6. +
+

+
+ + + +
+
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:

+

+

    +
  1. Click the "lockTarget" button to request a pointer lock.
  2. +
  3. Test is done.
  4. +
+

+
+ + + +
+
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.

+ +
+ + -- cgit v1.2.3