OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 This test passes if it does not crash. | 2 This test passes if it does not crash. |
3 <script> | 3 <script> |
4 function runTest() { | 4 function runTest() { |
5 var clientRect = document.getElementById("innerDiv").getBoundingClientRect()
; | 5 var clientRect = document.getElementById("innerDiv").getBoundingClientRect()
; |
6 x = (clientRect.left + clientRect.right) / 2; | 6 x = (clientRect.left + clientRect.right) / 2; |
7 y = (clientRect.top + clientRect.bottom) / 2; | 7 y = (clientRect.top + clientRect.bottom) / 2; |
8 if (window.testRunner) | 8 if (window.testRunner) |
9 eventSender.gestureShowPress(x, y); | 9 eventSender.gestureShowPress(x, y); |
10 } | 10 } |
11 if (window.internals) | |
12 internals.settings.setRegionBasedColumnsEnabled(true); | |
13 | 11 |
14 if (window.testRunner) | 12 if (window.testRunner) |
15 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
16 </script> | 14 </script> |
17 <body onload=runTest() style="margin:0; overflow:-webkit-paged-x;"> | 15 <body onload=runTest() style="margin:0; overflow:-webkit-paged-x;"> |
18 <div id="outerDiv" style="cursor: pointer"> | 16 <div id="outerDiv" style="cursor: pointer"> |
19 <div id="innerDiv" style="padding: 15px"> | 17 <div id="innerDiv" style="padding: 15px"> |
20 </body> | 18 </body> |
OLD | NEW |