summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/gamepad/gamepad_frame_state.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/gamepad/gamepad_frame_state.html')
-rw-r--r--dom/tests/mochitest/gamepad/gamepad_frame_state.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/tests/mochitest/gamepad/gamepad_frame_state.html b/dom/tests/mochitest/gamepad/gamepad_frame_state.html
new file mode 100644
index 0000000000..a53b91b2cb
--- /dev/null
+++ b/dom/tests/mochitest/gamepad/gamepad_frame_state.html
@@ -0,0 +1,16 @@
+<!-- Any copyright is dedicated to the Public Domain.
+ - http://creativecommons.org/publicdomain/zero/1.0/ -->
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>frame</title>
+ <script type="text/javascript">
+ var gamepad;
+ window.addEventListener("gamepadconnected", function(e) {
+ gamepad = e.gamepad;
+ });
+ </script>
+</head>
+<body>
+</body>
+</html>