tor-browser

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

test_bug957562.html (1026B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=957562
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 903715</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <script src="/tests/SimpleTest/EventUtils.js"></script>
     11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=957562">Mozilla Bug 957562</a>
     15 <p id="display"></p>
     16 <input id="n" onfocus="kill()" type="number" style="border:20px solid black">
     17 <pre id="test">
     18 </pre>
     19 <script type="application/javascript">
     20 SimpleTest.waitForExplicitFinish();
     21 SimpleTest.waitForFocus(runTests, window);
     22 
     23 var killed = false;
     24 function kill() {
     25  if (killed) {
     26    return;
     27  }
     28  killed = true;
     29  n.style.display = 'none';
     30  r = n.getBoundingClientRect();
     31  setTimeout(function() {
     32    ok(true, "Didn't crash");
     33    SimpleTest.finish();
     34  }, 0);
     35 }
     36 
     37 function runTests()
     38 {
     39  synthesizeMouse(n, 2, 2, {});
     40 }
     41 </script>
     42 </body>
     43 </html>