| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 5 <script> | 5 <script> |
| 6 function runTest() { | 6 function runTest() { |
| 7 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); | 7 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); |
| 8 x = (clientRect.left + clientRect.right) / 2; | 8 x = (clientRect.left + clientRect.right) / 2; |
| 9 y = (clientRect.top + clientRect.bottom) / 2; | 9 y = (clientRect.top + clientRect.bottom) / 2; |
| 10 if (window.testRunner) { | 10 if (window.testRunner) { |
| 11 testRunner.dumpAsText(true); | 11 testRunner.dumpAsTextWithPixelResults(); |
| 12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
| 13 } | 13 } |
| 14 | 14 |
| 15 if (window.eventSender) { | 15 if (window.eventSender) { |
| 16 eventSender.gestureTapDown(x, y); | 16 eventSender.gestureTapDown(x, y); |
| 17 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | 17 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
| 18 } else { | 18 } else { |
| 19 debug("This test requires DumpRenderTree."); | 19 debug("This test requires DumpRenderTree."); |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 </head> | 23 </head> |
| 24 <body onload="runTest();"> | 24 <body onload="runTest();"> |
| 25 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top:
40"> | 25 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top:
40"> |
| 26 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0
.5)">Target Link.</a> | 26 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0
.5)">Target Link.</a> |
| 27 </div> | 27 </div> |
| 28 <div style="position: relative; left: 10; top: 70"> | 28 <div style="position: relative; left: 10; top: 70"> |
| 29 This test is successful if "Target Link" above is covered in a transparent green
rectangle with rounded corners. | 29 This test is successful if "Target Link" above is covered in a transparent green
rectangle with rounded corners. |
| 30 </div> | 30 </div> |
| 31 </body> | 31 </body> |
| 32 </html> | 32 </html> |
| OLD | NEW |