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 | |
14 if (window.testRunner) | 11 if (window.testRunner) |
15 testRunner.dumpAsText(); | 12 testRunner.dumpAsText(); |
16 </script> | 13 </script> |
17 <body onload=runTest() style="margin:0; overflow:-webkit-paged-x;"> | 14 <body onload=runTest() style="margin:0; overflow:-webkit-paged-x;"> |
18 <div id="outerDiv" style="cursor: pointer"> | 15 <div id="outerDiv" style="cursor: pointer"> |
19 <div id="innerDiv" style="padding: 15px"> | 16 <div id="innerDiv" style="padding: 15px"> |
20 </body> | 17 </body> |
OLD | NEW |