1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/gamepad/gamepad_frame.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,20 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + - http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!DOCTYPE HTML> 1.7 +<html> 1.8 +<head> 1.9 + <title>frame</title> 1.10 + <script type="text/javascript"> 1.11 + var connectedEvents = 0; 1.12 + var buttonPresses = 0; 1.13 + window.addEventListener("gamepadconnected", function() { 1.14 + connectedEvents++; 1.15 +}); 1.16 + window.addEventListener("gamepadbuttondown", function() { 1.17 + buttonPresses++; 1.18 +}); 1.19 + </script> 1.20 +</head> 1.21 +<body> 1.22 +</body> 1.23 +</html>