2 <script src=
"../../../resources/js-test.js"></script>
3 <style type=
"text/css">
26 <div id=
"box">Touches go here
</div>
28 <iframe id=
"frame"></iframe>
31 <p id=
"description"></p>
32 <div id=
"console"></div>
34 <script type=
"text/javascript">
35 description("Tests that touch events on a an element covered by a hidden iframe trigger the touch handlers.");
37 window
.jsTestIsAsync
= true;
38 document
.querySelector("#box").addEventListener("touchstart", testComplete
);
40 function testComplete(event
)
42 touch
= event
.touches
[0];
43 shouldBe("touch.pageX", "50");
44 shouldBe("touch.pageY", "50");
49 if (window
.eventSender
) {
50 eventSender
.addTouchPoint(50, 50);
51 eventSender
.touchStart();
53 debug("This test requires DRT.");
57 window
.onload
= runTest
;