| 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 </head> | 5 </head> |
| 6 <body onload="runTest();"> | 6 <body onload="runTest();"> |
| 7 <div style="position: relative; left: 10px; top: 10px"></div> | 7 <div style="position: relative; left: 10px; top: 10px"></div> |
| 8 <div id="outerDiv" style="position: relative; left: 10px; top: 40px; width: 300p
x; height: 150px; overflow-y: scroll; overflow-x: scroll;"> | 8 <div id="outerDiv" style="position: relative; left: 10px; top: 40px; width: 300p
x; height: 150px; overflow-y: scroll; overflow-x: scroll;"> |
| 9 <div style="-webkit-transform: translateZ(0)"> | 9 <div style="-webkit-transform: translateZ(0)"> |
| 10 <div id="targetDiv" style="position: relative; left: 10px; top: i10px; width:
200px; height: 100px; overflow-y: scroll; overflow-x: scroll;"> | 10 <div id="targetDiv" style="position: relative; left: 10px; top: i10px; width:
200px; height: 100px; overflow-y: scroll; overflow-x: scroll;"> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 </div></div> | 22 </div></div> |
| 23 <div style="position: relative; left: 10px; top: 80px"> | 23 <div style="position: relative; left: 10px; top: 80px"> |
| 24 This test is successful if "Target Link" above is covered in a transparent green
rectangle with rounded corners. | 24 This test is successful if "Target Link" above is covered in a transparent green
rectangle with rounded corners. |
| 25 </div> | 25 </div> |
| 26 <script> | 26 <script> |
| 27 function runTest() { | 27 function runTest() { |
| 28 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); | 28 var clientRect = document.getElementById('targetLink').getBoundingClientRect
(); |
| 29 x = (clientRect.left + clientRect.right) / 2; | 29 x = (clientRect.left + clientRect.right) / 2; |
| 30 y = (clientRect.top + clientRect.bottom) / 2; | 30 y = (clientRect.top + clientRect.bottom) / 2; |
| 31 if (window.testRunner) { | 31 if (window.testRunner) { |
| 32 testRunner.dumpAsText(true); | 32 testRunner.dumpAsTextWithPixelResults(); |
| 33 testRunner.waitUntilDone(); | 33 testRunner.waitUntilDone(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 if (window.eventSender) { | 36 if (window.eventSender) { |
| 37 eventSender.gestureTapDown(x, y); | 37 eventSender.gestureTapDown(x, y); |
| 38 document.getElementById('outerDiv').scrollTop += 20; | 38 document.getElementById('outerDiv').scrollTop += 20; |
| 39 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); | 39 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0); |
| 40 } else { | 40 } else { |
| 41 debug("This test requires DumpRenderTree."); | 41 debug("This test requires DumpRenderTree."); |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 </script> | 44 </script> |
| 45 </script> | 45 </script> |
| 46 </body> | 46 </body> |
| 47 </html> | 47 </html> |
| OLD | NEW |