Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: LayoutTests/inspector/layers/layer-scroll-rects-get.html

Issue 166273018: Added showing slow scroll rectangles in Layers panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes and updates. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..fc90b4beba3b9825f313c488f6bb17e94a3e13dc
--- /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");
+ 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;">
caseq 2014/02/25 16:38:41 nit: we use double quotes by default.
malch 2014/02/26 07:28:21 Done.
+ Touch me!<br>
+</div>
+<script type="text/javascript">
+ var element = document.getElementById('touchable');
+ element.addEventListener('touchstart', function(evt) {}, false);
caseq 2014/02/25 16:38:41 ditto
malch 2014/02/26 07:28:21 Done.
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698