Chromium Code Reviews| Index: LayoutTests/inspector/layers/layer-scroll-rects-get.html |
| diff --git a/LayoutTests/inspector/layers/layer-scroll-rects-get.html b/LayoutTests/inspector/layers/layer-scroll-rects-get.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1728a8787a8c9e7d7c622ab5475342eaac6a38a5 |
| --- /dev/null |
| +++ b/LayoutTests/inspector/layers/layer-scroll-rects-get.html |
| @@ -0,0 +1,31 @@ |
| +<html> |
| +<head> |
| +<script src="../../http/tests/inspector/inspector-test.js"></script> |
| +<script src="../../http/tests/inspector/layers-test.js"></script> |
| +<script> |
| +function test() |
| +{ |
| + function onGotLayers() |
| + { |
| + InspectorTest.addResult("Scroll rectangles"); |
| + InspectorTest.dumpViewScrollRects(); |
| + |
| + InspectorTest.completeTest(); |
| + } |
| + |
| + WebInspector.showPanel("layers"); |
|
pfeldman
2014/03/04 09:45:59
You don't need this line.
malch
2014/03/07 12:42:07
Done.
|
| + InspectorTest.requestLayers(onGotLayers); |
| +} |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<div style="-webkit-transform: translateZ(100px);" onmousewheel=""></div> |
| +<div id="touchable" style="-webkit-transform:translateZ(100px);height:20px;width:200px;overflow:scroll;"> |
| + Touch me!<br> |
| +</div> |
| +<script type="text/javascript"> |
| + var element = document.getElementById('touchable'); |
|
pfeldman
2014/03/04 09:45:59
4 space indent
malch
2014/03/07 12:42:07
Done.
|
| + element.addEventListener("touchstart", function(evt) {}, false); |
| +</script> |
| +</body> |
| +</html> |