gecko/dom/tests/mochitest/gamepad/gamepad_frame.html
Ted Mielczarek 8576d5670d bug 893785 - don't fire gamepadconnected events for windows that have already received them. r=smaug
--HG--
rename : dom/tests/mochitest/gamepad/test_gamepad_hidden_frame.html => dom/tests/mochitest/gamepad/test_gamepad_connect_events.html
2013-08-01 13:52:27 -04:00

21 lines
478 B
HTML

<!-- 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 connectedEvents = 0;
var buttonPresses = 0;
window.addEventListener("gamepadconnected", function() {
connectedEvents++;
});
window.addEventListener("gamepadbuttondown", function() {
buttonPresses++;
});
</script>
</head>
<body>
</body>
</html>