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();
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();
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>