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">
11 #outerDiv, #outerDiv div {
17 <body onload="runTest();">
18 <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer">
19 <div style="cursor: pointer;">
20 <div style="cursor: default;">
21 <div id="innerDiv"></div>
30 var clientRect = document.getElementById("innerDiv").getBoundingClientRect();
31 x = (clientRect.left + clientRect.right) / 2;
32 y = (clientRect.top + clientRect.bottom) / 2;
33 if (window.testRunner) {
34 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone();
38 if (window.eventSender) {
39 eventSender.gestureShowPress(x, y);
40 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
42 debug("This test requires DumpRenderTree.");