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..8febde6795918a84e12a3e9a9a816cd589930a5a |
--- /dev/null |
+++ b/LayoutTests/inspector/layers/layer-scroll-rects-get.html |
@@ -0,0 +1,30 @@ |
+<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.inspectorView.showPanel("layers"); |
+ 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:20px;overflow:scroll;"> |
+ <div style="height:40px;width:40px;"></div> |
+</div> |
+<script type="text/javascript"> |
+ var element = document.getElementById('touchable'); |
+ element.addEventListener("touchstart", function(evt) {}, false); |
+</script> |
+</body> |
+</html> |