5 <body onload=
"runTest();" style=
"width:2000px;height:2000px;">
6 <div>This test is successful if event.clientX/Y are consistent with the generated input.
</div>
7 <div id=
"result"></div>
10 document
.getElementById("result").innerText
= e
.targetTouches
[0].clientX
+ ', ' + e
.targetTouches
[0].clientY
;
11 if (window
.testRunner
)
12 window
.testRunner
.notifyDone()
16 // Scroll before scaling so we scroll the layout viewport rather than the visual.
17 window
.scrollTo(100,100);
19 window
.internals
.setPageScaleFactor(2);
21 if (window
.testRunner
) {
22 testRunner
.dumpAsText();
23 testRunner
.waitUntilDone();
26 document
.addEventListener("touchstart", touched
, false);
27 if (window
.eventSender
&& window
.internals
) {
28 eventSender
.clearTouchPoints();
29 eventSender
.addTouchPoint(30, 70);
30 eventSender
.touchStart();
32 debug("This test requires DumpRenderTree.");