Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / anchor-image-scrolled-x-y.html
blob9c58b0c9f2a6fc7f16d2185327e069f761f23813
1 <head>
2 <script>
3 function test()
5 var queryIndex = document.URL.indexOf('?');
6 if (queryIndex == -1) {
7 window.scrollTo(500, 500);
9 if (window.testRunner) {
10 testRunner.dumpAsText();
11 testRunner.waitUntilDone();
13 eventSender.mouseMoveTo(18, 18);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
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>");
21 if (window.testRunner)
22 testRunner.notifyDone();
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>