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

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: Fixed test. Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/inspector/layers/layer-scroll-rects-get.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 958e707a624bb22225e08d5f3da014e57cd6edd9..c0382dd25730d48a67f615605b0d7555ae0c7c72 100644
--- a/LayoutTests/http/tests/inspector/layers-test.js
+++ b/LayoutTests/http/tests/inspector/layers-test.js
@@ -101,4 +101,37 @@ function initialize_LayerTreeTests()
callback();
}
}
+
+ InspectorTest.dumpViewScrollRect = function(element)
+ {
+ var value = {
+ className: element.className,
+ title: element.title,
+ width: element.style.width,
+ height: element.style.height,
+ left: element.style.left,
+ top: element.style.top
+ };
+ if (element.__unchanged)
+ value.__unchanged = element.__unchanged;
+ InspectorTest.addObject(value, null, "", "scroll-rect: ");
+ }
+
+ InspectorTest.dumpViewScrollRects = function()
+ {
+ InspectorTest.addResult("View elements dump");
+ var root = WebInspector.inspectorView.panel("layers")._layers3DView._rotatingContainerElement;
+ Array.prototype.forEach.call(root.querySelectorAll('.scroll-rect'), InspectorTest.dumpViewScrollRect.bind(InspectorTest));
+ }
+
+ InspectorTest.dumpModelScrollRects = function()
+ {
+ function dumpScrollRectsForLayer(layer)
+ {
+ InspectorTest.addObject(layer._scrollRects);
+ }
+
+ InspectorTest.addResult("Model elements dump");
+ InspectorTest.layerTreeModel.forEachLayer(dumpScrollRectsForLayer.bind(this));
+ }
}
« no previous file with comments | « no previous file | LayoutTests/inspector/layers/layer-scroll-rects-get.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698