| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="../../resources/js-test.js"></script> |
| </head> |
| <body onload="runTest();"> |
| <div id="targetDiv" onclick="doNothing();" style="position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; transform: rotate(22.5deg); border-style: solid; border-width: 2px; -webkit-tap-highlight-color: rgba(0, 255, 0, 0.5); cursor: Pointer"> |
| <br><center>Target</center><br> |
| </div> |
| <div style="position: absolute; left: 10px; top: 110px; will-change: transform;"> |
| This test is successful if the rotated box labelled "Target" is covered in a green rectangle. |
| </div> |
| <script> |
| function doNothing() { } |
| function runTest() { |
| var clientRect = document.getElementById('targetDiv').getBoundingClientRect(); |
| x = (clientRect.left + clientRect.right) / 2; |
| y = (0.75 * clientRect.top + 0.25 * clientRect.bottom); |
| if (window.testRunner) { |
| testRunner.dumpAsTextWithPixelResults(); |
| testRunner.waitUntilDone(); |
| } |
| |
| if (window.eventSender) { |
| eventSender.gestureShowPress(x, y); |
| window.setTimeout(function() { testRunner.notifyDone(); }, 0); |
| } else { |
| debug("This test requires DumpRenderTree."); |
| } |
| } |
| </script> |
| </script> |
| </body> |
| </html> |