Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / images / image-map-zoom.html
blob6592132b0a249e6d807b68fb0c30511bfeb07fe3
1 <html>
3 <head>
5 <script>
7 function runTest()
9 if (!window.eventSender)
10 return;
12 testRunner.dumpAsText();
14 eventSender.mouseMoveTo(340, 140);
15 eventSender.mouseDown();
16 eventSender.mouseUp();
19 function setResult(message)
21 document.getElementById('result').firstChild.data = message;
24 </script>
26 </head>
28 <body onload="runTest()" style="margin:0; zoom: 2" onclick="setResult('FAILURE')">
30 <map name="navmap">
31 <area shape=rect coords="30,30,70,70" href onclick="setResult('SUCCESS'); event.stopPropagation(); event.preventDefault();">
32 </map>
34 <img style="position: relative; left: 100px" border="20" width="100" height="100" usemap="#navmap" ismap>
36 <hr>
38 <p>This tests that client side image maps still work when zooming is in effect.</p>
40 <div id="result">TEST NOT RUN</div>
42 </body>
44 </html>