OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 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"> |
| 7 </head> |
| 8 <body onload="runTest();"> |
| 9 <div class="opaqueHighlight" id="expectedHighlight" style="border-style: sol
id; cursor: pointer"> |
| 10 Click here to go <a id="taptarget" href="#">there</a> |
| 11 </div> |
| 12 |
| 13 <script> |
| 14 function runTest() { |
| 15 useMockHighlight(); |
| 16 |
| 17 var clientRect = document.getElementById("taptarget").getBoundingCli
entRect(); |
| 18 x = (clientRect.left + clientRect.right) / 2; |
| 19 y = (clientRect.top + clientRect.bottom) / 2; |
| 20 if (window.testRunner) { |
| 21 testRunner.dumpAsTextWithPixelResults(); |
| 22 testRunner.waitUntilDone(); |
| 23 } |
| 24 |
| 25 if (window.eventSender) { |
| 26 eventSender.gestureShowPress(x, y); |
| 27 window.setTimeout(function() { window.testRunner.notifyDone(); }
, 0); |
| 28 } else { |
| 29 debug("This test requires DumpRenderTree."); |
| 30 } |
| 31 } |
| 32 </script> |
| 33 </body> |
| 34 </html> |
OLD | NEW |