[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / fast / events / anchor-image-scrolled-x-y.html
1 <head>
2 <script>
3 function test()
4 {
5     var queryIndex = document.URL.indexOf('?');
6     if (queryIndex == -1) {
7         window.scrollTo(500, 500);
8
9         if (window.layoutTestController) {
10             layoutTestController.dumpAsText();
11             layoutTestController.waitUntilDone();
12
13             eventSender.mouseMoveTo(18, 18);
14             eventSender.mouseDown();
15             eventSender.mouseUp();
16         }
17     } else {
18         document.write("<div>Form data: " + document.URL.substring(queryIndex + 1) + "</div>");
19         document.write("<div>X and Y should both be about 10.</div>");
20
21         if (window.layoutTestController)
22             layoutTestController.notifyDone();
23     }
24 }
25 </script>
26 </head>
27 <body onload="test()">
28 <div style="background:red; width:1000px; height:500px"></div>
29 <div style="background:blue; height:50px; width:500px; float:left"></div>
30 <a href="anchor-image-scrolled-x-y.html"><img src="resources/greenbox.png" ismap></a>
31 <div style="background:orange; width:3000px; height:3000px"></div>
32 </body>