[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / images / image-map-zoom.html
1 <html>
2
3 <head>
4
5 <script>
6
7 function runTest()
8 {
9     if (!window.eventSender)
10         return;
11
12     layoutTestController.dumpAsText();
13
14     eventSender.mouseMoveTo(340, 140);
15     eventSender.mouseDown();
16     eventSender.mouseUp();
17 }
18
19 function setResult(message)
20 {
21     document.getElementById('result').firstChild.data = message;
22 }
23
24 </script>
25
26 </head>
27
28 <body onload="runTest()" style="margin:0; zoom: 2" onclick="setResult('FAILURE')">
29
30 <map name="navmap">
31 <area shape=rect coords="30,30,70,70" href onclick="setResult('SUCCESS'); event.stopPropagation(); event.preventDefault();"> 
32 </map>
33
34 <img style="position: relative; left: 100px" border="20" width="100" height="100" usemap="#navmap" ismap>
35
36 <hr>
37
38 <p>This tests that client side image maps still work when zooming is in effect.</p>
39
40 <div id="result">TEST NOT RUN</div>
41
42 </body>
43
44 </html>