| <!DOCTYPE html> |
| <html> |
| <body onload=runTest(); id=targetDiv style="position: relative; width: 50px; height: 50px; cursor: Pointer">Some overflowing text. This test passes if the renderer doesn't crash |
| <script> |
| function runTest() { |
| // Test for crash |
| var clientRect = document.getElementById('targetDiv').getBoundingClientRect(); |
| x = (clientRect.left + clientRect.right) / 2; |
| y = (clientRect.top + clientRect.bottom) / 2; |
| if (window.testRunner) { |
| eventSender.gestureShowPress(x, y); |
| testRunner.dumpAsText(); |
| } |
| } |
| </script> |
| </body> |
| </html> |