OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.cs
s"> |
| 6 </head> |
| 7 <body onload="runTest();"> |
| 8 <div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid
; cursor: pointer"> |
| 9 Click here to go <a id="taptarget" href="#">there</a> |
| 10 </div> |
| 11 |
| 12 <script> |
| 13 function runTest() { |
| 14 var clientRect = document.getElementById("taptarget").getBoundingClientRec
t(); |
| 15 x = (clientRect.left + clientRect.right) / 2; |
| 16 y = (clientRect.top + clientRect.bottom) / 2; |
| 17 if (window.testRunner) { |
| 18 testRunner.dumpAsTextWithPixelResults(); |
| 19 testRunner.waitUntilDone(); |
| 20 } |
| 21 |
| 22 if (window.eventSender) { |
| 23 eventSender.gestureShowPress(x, y); |
| 24 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
| 25 } else { |
| 26 debug("This test requires DumpRenderTree."); |
| 27 } |
| 28 } |
| 29 </script> |
| 30 </body> |
| 31 </html> |
OLD | NEW |