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/elements-test.js

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) 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/http/tests/inspector/inspect-element.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/elements-test.js
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index f7bd4fec5c60b0eb84eb5563e841fb59b87ab66a..e5fcdd250766209c838f199d497c3d0cbb45a378 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -170,6 +170,11 @@ InspectorTest.selectNodeAndWaitForStylesWithComputed = function(idValue, callbac
InspectorTest.selectNodeAndWaitForStyles(idValue, stylesCallback);
}
+InspectorTest.firstElementsTreeOutline = function()
+{
+ return WebInspector.panels.elements._treeOutlines[0];
+}
+
InspectorTest.dumpSelectedElementStyles = function(excludeComputed, excludeMatched, omitLonghands, includeSelectorGroupMarks)
{
function extractText(element)
@@ -488,7 +493,7 @@ InspectorTest.dumpElementsTree = function(rootNode, depth, resultsArray)
}
}
- var treeOutline = WebInspector.panels.elements.treeOutline;
+ var treeOutline = InspectorTest.firstElementsTreeOutline();
treeOutline._updateModifiedNodes();
print(rootNode ? treeOutline.findTreeElement(rootNode) : treeOutline, "", depth || 10000);
};
@@ -508,8 +513,8 @@ InspectorTest.expandElementsTree = function(callback)
function onAllNodesAvailable()
{
- WebInspector.panels.elements.treeOutline._updateModifiedNodes();
- expand(WebInspector.panels.elements.treeOutline);
+ InspectorTest.firstElementsTreeOutline()._updateModifiedNodes();
+ expand(InspectorTest.firstElementsTreeOutline());
callback();
}
WebInspector.inspectorView.showPanel("elements");
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/inspect-element.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698