4 <script src=
"resources/link-highlight-helper.js"></script>
5 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
7 <body onload=
"runTest();" style=
"overflow: hidden">
8 <div style=
"transform: translatez(0) translatey(100px) translatex(300px);">
9 <a href=
"" class=
"opaqueHighlight">
10 <img width=
"320" height=
"240" id=
"targetLink" src=
"resources/dice.png">
16 var clientRect
= document
.getElementById('targetLink').getBoundingClientRect();
17 x
= (clientRect
.left
+ clientRect
.right
) / 2;
18 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
20 if (window
.testRunner
) {
21 testRunner
.dumpAsTextWithPixelResults();
22 testRunner
.waitUntilDone();
25 if (window
.eventSender
) {
26 eventSender
.gestureShowPress(x
, y
);
27 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
29 debug("This test requires DumpRenderTree.");
30 debug("This test is successful if the image below is covered in a green rectangle.");