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