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

Unified Diff: LayoutTests/http/tests/inspector/layers-test.js

Issue 166273018: Added showing slow scroll rectangles in Layers panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixes. 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/http/tests/inspector/layers-test.js
diff --git a/LayoutTests/http/tests/inspector/layers-test.js b/LayoutTests/http/tests/inspector/layers-test.js
index 6e019d7e1d9a2884200045236e0632c85e40c475..9d24ffd7b7bc92bef6c41e8ebae3fd8f870d1229 100644
--- a/LayoutTests/http/tests/inspector/layers-test.js
+++ b/LayoutTests/http/tests/inspector/layers-test.js
@@ -101,4 +101,24 @@ function initialize_LayerTreeTests()
callback();
}
}
+
+ InspectorTest.dumpViewScrollRect = function(element)
+ {
+ InspectorTest.addObject(element.__scrollRect, null, "", "scrollRect: ");
+ }
+
+ InspectorTest.dumpViewScrollRects = function()
+ {
+ InspectorTest.addResult("View elements dump");
+ var root = WebInspector.panel("layers")._layers3DView._rotatingContainerElement;
+ Array.prototype.forEach.call(root.querySelectorAll('.scroll-rect'), InspectorTest.dumpViewScrollRect.bind(InspectorTest));
+ }
+
+ InspectorTest.dumpModelScrollRects = function()
+ {
+ InspectorTest.addResult("Model elements dump");
+ for (layerId in InspectorTest._layerTreeModel._layersById) {
caseq 2014/02/28 07:16:23 Nit: use forEachLayer()?
malch 2014/02/28 12:19:57 Done.
+ InspectorTest.addObject(InspectorTest._layerTreeModel._layersById[layerId]._scrollRects);
+ }
+ }
}

Powered by Google App Engine
This is Rietveld 408576698