test_bug587469.html (1093B)
1 <!-- Quirks --> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=587469 5 --> 6 <head> 7 <title>Test for Bug 587469</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=587469">Mozilla Bug 587469</a> 14 <p id="display"> 15 <map name=a></map> 16 <map name=a><area shape=rect coords=25,25,75,75 href=#fail></map> 17 <img usemap=#a src=image.png> 18 </p> 19 <div id="content" style="display: none"> 20 </div> 21 <pre id="test"> 22 <script type="application/javascript"> 23 /** Test for Bug 587469 */ 24 SimpleTest.waitForExplicitFinish(); 25 function finish() { 26 is(location.hash, "", "Should not have changed the hash."); 27 SimpleTest.finish(); 28 } 29 SimpleTest.waitForFocus(function() { 30 synthesizeMouse(document.getElementsByTagName("img")[0], 50, 50, {}); 31 // Hit the event loop twice before doing the test 32 setTimeout(function() { 33 setTimeout(finish, 0); 34 }, 0); 35 }); 36 37 38 </script> 39 </pre> 40 </body> 41 </html>