test_bug1055933.html (1525B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1055933 5 --> 6 <head> 7 <title>Test for Bug 1055933</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=1055933">Mozilla Bug 1055933</a> 14 <p id="display"></p> 15 <div id="content" style="display: none"> 16 17 </div> 18 <pre id="test"> 19 <script class="testbody" type="text/javascript"> 20 /** Test for Bug 1055933 */ 21 SimpleTest.waitForExplicitFinish(); 22 addLoadEvent(function() { 23 var element = document.getElementById('area'); 24 is(getComputedStyle(element).cursor, "pointer", "Does the <area> element return the correct cursor?"); 25 //Force mPrimaryFrame to be set 26 requestAnimationFrame( function() { 27 synthesizeMouseAtCenter(document.getElementById('image'), {}, window); 28 is(getComputedStyle(element).cursor, "pointer", "Does the <area> element still return the correct cursor after mPrimaryFrame is set?"); 29 SimpleTest.finish(); 30 }); 31 }); 32 </script> 33 </pre> 34 <div style="cursor: crosshair"> 35 <img usemap="#map" border ="0" id="image" src="file_bug1055933_circle-xxl.png"> 36 <map id="map" name="map"> 37 <area id="area" onmousedown="this.setCapture();" onmouseup="this.releaseCapture();" shape="circle" coords="128,129,103" style="cursor: pointer"> 38 </map> 39 </div> 40 </body> 41 </html>