| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/layers-test.js"></script> | 4 <script src="../../http/tests/inspector/layers-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 function onGotLayers() | 8 function onGotLayers() |
| 9 { | 9 { |
| 10 InspectorTest.addResult("Scroll rectangles"); | 10 InspectorTest.addResult("Scroll rectangles"); |
| 11 InspectorTest.dumpModelScrollRects(); | 11 InspectorTest.dumpModelScrollRects(); |
| 12 InspectorTest.completeTest(); | 12 InspectorTest.completeTest(); |
| 13 } | 13 } |
| 14 | 14 |
| 15 InspectorTest.requestLayers(onGotLayers); | 15 InspectorTest.requestLayers(onGotLayers); |
| 16 } | 16 } |
| 17 </script> | 17 </script> |
| 18 </head> | 18 </head> |
| 19 <body onload="runTest()"> | 19 <body onload="runTest()"> |
| 20 <div style="-webkit-transform: translateZ(100px);" onmousewheel=""></div> | 20 <div style="transform: translateZ(100px);" onmousewheel=""></div> |
| 21 <div id="touchable" style="-webkit-transform:translateZ(100px);height:20px;width
:20px;overflow:scroll;"> | 21 <div id="touchable" style="transform:translateZ(100px);height:20px;width:20px;ov
erflow:scroll;"> |
| 22 <div style="height:40px;width:40px;"></div> | 22 <div style="height:40px;width:40px;"></div> |
| 23 </div> | 23 </div> |
| 24 <script type="text/javascript"> | 24 <script type="text/javascript"> |
| 25 var element = document.getElementById('touchable'); | 25 var element = document.getElementById('touchable'); |
| 26 element.addEventListener("touchstart", function(evt) {}, false); | 26 element.addEventListener("touchstart", function(evt) {}, false); |
| 27 </script> | 27 </script> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |