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 <style> |
| 7 #outerDiv { |
| 8 width: 150px; |
| 9 } |
| 10 #outerDiv, #outerDiv div { |
| 11 padding: 15px; |
| 12 border-style: solid; |
| 13 } |
| 14 </style> |
| 15 </head> |
| 16 <body onload="runTest();"> |
| 17 <div class="opaqueHighlight" id="outerDiv" style="cursor: pointer"> |
| 18 <div> |
| 19 <div style="cursor: pointer"> |
| 20 <div id="innerDiv"></div> |
| 21 </div> |
| 22 </div> |
| 23 </div> |
| 24 |
| 25 <script> |
| 26 function runTest() { |
| 27 var clientRect = document.getElementById("innerDiv").getBoundingClientRect
(); |
| 28 x = (clientRect.left + clientRect.right) / 2; |
| 29 y = (clientRect.top + clientRect.bottom) / 2; |
| 30 if (window.testRunner) { |
| 31 testRunner.dumpAsTextWithPixelResults(); |
| 32 testRunner.waitUntilDone(); |
| 33 } |
| 34 |
| 35 if (window.eventSender) { |
| 36 eventSender.gestureShowPress(x, y); |
| 37 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
| 38 } else { |
| 39 debug("This test requires DumpRenderTree."); |
| 40 } |
| 41 } |
| 42 </script> |
| 43 </body> |
| 44 </html> |
OLD | NEW |