tor-browser

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

test_bug290397.html (1017B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=290397
      5 -->
      6 <head>
      7  <title>Test for Bug 290397</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <script src="/tests/SimpleTest/EventUtils.js"></script>
     10  <link rel="stylesheet" href="/tests/SimpleTest/test.css">
     11 </head>
     12 <body>
     13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=290397">Mozilla Bug 290397</a>
     14 <p id="display">
     15 <map name=a>
     16  <area coords=0,0,20,20 href=#pass>
     17  <area shape=default href=#fail>
     18 </map>
     19 <img src=file_Dolske.png usemap=#a id=image>
     20 </p>
     21 <div id="content" style="display: none">
     22 
     23 </div>
     24 <pre id="test">
     25 <script>
     26 /** Test for Bug 290397 */
     27 SimpleTest.waitForExplicitFinish();
     28 onhashchange = function() {
     29  is(location.hash, "#pass", "Got the wrong area");
     30  SimpleTest.finish();
     31 };
     32 function runTest() {
     33  var image = document.getElementById("image");
     34  SimpleTest.waitForFocus(() => synthesizeMouse(image, 10, 10, {}));
     35 }
     36 addLoadEvent(runTest);
     37 </script>
     38 </pre>
     39 </body>
     40 </html>