summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/gamepad/events-manual.html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-25 01:03:57 +0000
commitceadffab6b357723981a429e11222daf6cd6dcfb (patch)
tree5603053048d6a460f79b22bdf165fb74d32d39b0 /testing/web-platform/tests/gamepad/events-manual.html
parent14fb2f966e9b54598c451e3cb35b4aa0480dafed (diff)
parentad5a13bd501e379517da1a944c104a11d951a3f5 (diff)
downloadUXP-RC_20210225.tar
UXP-RC_20210225.tar.gz
UXP-RC_20210225.tar.lz
UXP-RC_20210225.tar.xz
UXP-RC_20210225.zip
Merge branch 'master' into releaseRC_20210225
Diffstat (limited to 'testing/web-platform/tests/gamepad/events-manual.html')
-rw-r--r--testing/web-platform/tests/gamepad/events-manual.html34
1 files changed, 0 insertions, 34 deletions
diff --git a/testing/web-platform/tests/gamepad/events-manual.html b/testing/web-platform/tests/gamepad/events-manual.html
deleted file mode 100644
index 321c9b2b0..000000000
--- a/testing/web-platform/tests/gamepad/events-manual.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<title>Manual Gamepad events tests</title>
-<link rel="help" href="https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#the-gamepadconnected-event">
-<link rel="help" href="https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#the-gamepaddisconnected-event">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
-setup({explicit_timeout: true});
-
-function set_instructions(text) {
- document.getElementById("instructions").textContent = text;
-}
-
-var index = -1;
-addEventListener("gamepadconnected", function (e) {
- assert_equals(index, -1, "Too many connected events?");
- assert_class_string(e, "GamepadEvent");
- assert_class_string(e.gamepad, "Gamepad");
- index = e.gamepad.index;
- set_instructions("Found a gamepad. Now disconnect the gamepad.");
-});
-addEventListener("gamepaddisconnected", function (e) {
- assert_class_string(e, "GamepadEvent");
- assert_equals(e.gamepad.index, index);
- done();
-});
-</script>
-</head>
-<body>
-<p id="instructions">This test requires a gamepad. Connect one and press any button to start the test.</p>
-</body>
-</html>