tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_gamepad_connect_events.html (906B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2   - http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!-- bug 893785 - Test that sending a gamepadconnected event to a new window
      4     doesn't result in a gamepadconnected event being sent to existing
      5     windows that have already received it. -->
      6 <!DOCTYPE HTML>
      7 <html>
      8 <head>
      9  <title>Test hidden frames</title>
     10  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     12 </head>
     13 <body>
     14 <script type="text/javascript" src="mock_gamepad.js"></script>
     15 <script class="testbody" type="text/javascript">
     16 // This test loads in an iframe, to ensure that the navigator instance is
     17 // loaded with the correct value of the preference.
     18 SimpleTest.waitForExplicitFinish();
     19 setGamepadPreferenceAndCreateIframe("test_gamepad_connect_events_iframe.html");
     20 </script>
     21 </body>
     22 </html>