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..ab3bb4670505830069f68239f8ad56072a689437 |
--- /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.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:200px;overflow:scroll;"> |
+ Touch me!<br> |
+</div> |
+<script type="text/javascript"> |
+ var element = document.getElementById('touchable'); |
+ element.addEventListener("touchstart", function(evt) {}, false); |
+</script> |
+</body> |
+</html> |