4 <script src=
"../../resources/js-test.js"></script>
6 <body onload=
"runTest();">
7 <div style=
"transform: translateZ(0); position: relative;">
8 <div id=
"target" style=
"width: 320px; height: 240px; cursor: pointer; -webkit-tap-highlight-color: rgb(0, 255, 0)">
9 <div id=
"target" style=
"width: 320px; height: 240px; "></div>
14 var clientRect
= document
.getElementById('target').getBoundingClientRect();
15 x
= (clientRect
.left
+ clientRect
.right
) / 2;
16 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
17 if (window
.testRunner
) {
18 testRunner
.dumpAsTextWithPixelResults();
19 testRunner
.waitUntilDone();
22 if (window
.eventSender
) {
23 eventSender
.gestureShowPress(x
, y
);
24 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
26 debug("This test requires DumpRenderTree.");
27 debug("This test is successful if we don't cause a crash. TODO: Make link highlight work on image maps");