tor-browser

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

test_bug761572.html (1002B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=761572
      5 -->
      6 <head>
      7  <title>Test for Bug 761572</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=761572">Mozilla Bug 761572</a>
     14 <div id="content">
     15  <div id="d" style="background:lime; width:50px; height:50px" onmouseup="doUp()" onclick="doClick()"></div>
     16 </div>
     17 <pre id="test">
     18 <script type="application/javascript">
     19 SimpleTest.waitForExplicitFinish();
     20 
     21 var d = document.getElementById("d");
     22 
     23 function doUp() {
     24  d.style.display = "none";
     25 }
     26 function doClick() {
     27  ok(true, "Check click received");
     28  SimpleTest.finish();
     29 }
     30  
     31 function doTest() {
     32  // synthesizes a mousedown/mouseup pair
     33  synthesizeMouse(d, 10, 10, {});
     34 }
     35 
     36 SimpleTest.waitForFocus(doTest);
     37 </script>
     38 </pre>
     39 </body>
     40 </html>