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..37e84717a10052264c915fcb74307451961f8a34 100644 |
--- a/LayoutTests/http/tests/inspector/layers-test.js |
+++ b/LayoutTests/http/tests/inspector/layers-test.js |
@@ -101,4 +101,27 @@ function initialize_LayerTreeTests() |
callback(); |
} |
} |
+ |
+ InspectorTest.dumpViewScrollRect = function(element) |
+ { |
+ // InspectorTest.addResult("scrollRect: " + JSON.stringify(element.__scrollRect)); |
caseq
2014/02/24 14:38:56
please remove
malch
2014/02/25 10:36:40
Done.
|
+ InspectorTest.addObject(element.__scrollRect, {layerId: "skip"}, "", "scrollRect: "); |
+ } |
+ |
+ InspectorTest.dumpViewScrollRects = function() |
+ { |
+ InspectorTest.addResult("View elements dump"); |
+ var root = WebInspector.panel("layers")._layers3DView._rotatingContainerElement; |
+ var scrollRectElements = root.querySelectorAll('.scroll-rect'); |
+ for (var i = 0, element; element = scrollRectElements[i]; ++i) { |
caseq
2014/02/24 14:38:56
scrollRectElements.forEach()?
malch
2014/02/25 10:36:40
https://coderwall.com/p/jcmzxw
|
+ InspectorTest.dumpViewScrollRect(element); |
+ } |
+ } |
+ |
+ InspectorTest.dumpModelScrollRects = function() |
+ { |
+ InspectorTest.addResult("Model elements dump"); |
+ // InspectorTest.addResult("scrollRectsByLayerId: " + JSON.stringify(InspectorTest._layerTreeModel._scrollRectsByLayerId)); |
caseq
2014/02/24 14:38:56
Please remove.
malch
2014/02/25 10:36:40
Done.
|
+ InspectorTest.addObject(InspectorTest._layerTreeModel._scrollRectsByLayerId, {layerId: "skip"}, "", "scrollRectsByLayerId: "); |
+ } |
} |