| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css"
> | 5 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css"
> |
| 6 </head> | 6 </head> |
| 7 <body onload="runTest();"> | 7 <body onload="runTest();"> |
| 8 <div style="-webkit-transform: translateZ(0); position: relative; left: 10; top:
40"> | 8 <div style="transform: translateZ(0); position: relative; left: 10; top: 40"> |
| 9 <span class="fauxHighlightSquare" href="" id="targetLink">Target <b id="nestedTe
xt">Nested</b> Link.</span> | 9 <span class="fauxHighlightSquare" href="" id="targetLink">Target <b id="nestedTe
xt">Nested</b> Link.</span> |
| 10 </div> | 10 </div> |
| 11 <div style="position: relative; left: 10; top: 70"> | 11 <div style="position: relative; left: 10; top: 70"> |
| 12 This test is successful if "Target Nested Link" above is covered in a green rect
angle with square corners. | 12 This test is successful if "Target Nested Link" above is covered in a green rect
angle with square corners. |
| 13 </div> | 13 </div> |
| 14 <script> | 14 <script> |
| 15 function runTest() { | 15 function runTest() { |
| 16 var clientRect = document.getElementById('nestedText').getBoundingClientRect
(); | 16 var clientRect = document.getElementById('nestedText').getBoundingClientRect
(); |
| 17 x = (clientRect.left + clientRect.right) / 2; | 17 x = (clientRect.left + clientRect.right) / 2; |
| 18 y = (clientRect.top + clientRect.bottom) / 2; | 18 y = (clientRect.top + clientRect.bottom) / 2; |
| 19 if (window.testRunner) { | 19 if (window.testRunner) { |
| 20 testRunner.dumpAsTextWithPixelResults(); | 20 testRunner.dumpAsTextWithPixelResults(); |
| 21 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 if (window.eventSender) { | 24 if (window.eventSender) { |
| 25 eventSender.gestureShowPress(x, y); | 25 eventSender.gestureShowPress(x, y); |
| 26 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | 26 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
| 27 } else { | 27 } else { |
| 28 debug("This test requires DumpRenderTree."); | 28 debug("This test requires DumpRenderTree."); |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| 32 </script> | 32 </script> |
| 33 </body> | 33 </body> |
| 34 </html> | 34 </html> |
| OLD | NEW |