4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/link-highlight-helper.js"></script>
6 <script src=
"resources/target-div-run-test.js"></script>
7 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
9 <body onload=
"runTest();">
10 <div style=
"position: absolute; top: 10px; left: 10px; transform: translateZ(0);">
11 <div class=
"opaqueHighlight" id=
"targetDiv" style=
"position: fixed; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: solid; border-width: 2px; cursor: Pointer">
12 <br><center>Target
</center><br>
15 <div style=
"position: absolute; left: 10px; top: 250px; transform: translateZ(0);">
16 This test is successful if the box labelled
"Target" has a green rectangle centered on it.
21 var clientRect
= document
.getElementById('targetDiv').getBoundingClientRect();
22 x
= (clientRect
.left
+ clientRect
.right
) / 2;
23 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
24 if (window
.testRunner
) {
25 testRunner
.dumpAsTextWithPixelResults();
26 testRunner
.waitUntilDone();
29 if (window
.eventSender
) {
30 eventSender
.gestureShowPress(x
, y
);
31 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
33 debug("This test requires DumpRenderTree.");