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=
"position: relative; left: 10px; top: 10px"></div>
10 <div id=
"targetDiv" style=
"position: relative; left: 10px; top: 40px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
11 <div style=
"transform: translateZ(0)">
12 <a href=
"">Link
1</a><br>
13 <a href=
"">Link
2</a><br>
14 <a href=
"">Link
3</a><br>
15 <a class=
"opaqueHighlight needsFix" href=
"" id=
"targetLink">Target Link.
</a><br>
16 <a href=
"">Link
4</a><br>
17 <a href=
"">Link
5</a><br>
19 <div style=
"position: relative; left: 10px; top: 80px">
20 This test is successful if
"Target Link" above is covered in a green rectangle with square corners.
25 var clientRect
= document
.getElementById('targetLink').getBoundingClientRect();
26 x
= (clientRect
.left
+ clientRect
.right
) / 2;
27 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
28 if (window
.testRunner
) {
29 testRunner
.dumpAsTextWithPixelResults();
30 testRunner
.waitUntilDone();
33 if (window
.eventSender
) {
34 eventSender
.gestureShowPress(x
, y
);
35 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
37 debug("This test requires DumpRenderTree.");