4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/link-highlight-helper.js"></script>
6 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
8 <body onload=
"runTest();">
9 <div style=
"transform: translateZ(0); position: relative; left: 10; top: 40">
10 <a class=
"opaqueHighlight" href=
"" id=
"targetLink">Target Link.
</a>
12 <div style=
"position: relative; left: 10; top: 70">
13 This test is successful if
"Target Link" above is covered in a green rectangle with square corners.
19 var clientRect
= document
.getElementById('targetLink').getBoundingClientRect();
20 x
= (clientRect
.left
+ clientRect
.right
) / 2;
21 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
22 if (window
.testRunner
) {
23 testRunner
.dumpAsTextWithPixelResults();
24 testRunner
.waitUntilDone();
27 if (window
.eventSender
) {
28 eventSender
.gestureShowPress(x
, y
);
29 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
31 debug("This test requires DumpRenderTree.");