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

Unified Diff: LayoutTests/inspector/elements/reveal-shadow-dom-node.html

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
Index: LayoutTests/inspector/elements/reveal-shadow-dom-node.html
diff --git a/LayoutTests/inspector/elements/reveal-shadow-dom-node.html b/LayoutTests/inspector/elements/reveal-shadow-dom-node.html
index 231aff01d8f628c81aa3f583d26e4e869c7be95a..ca68a906e718f70f39c2635cb139b9f8bcb98971 100644
--- a/LayoutTests/inspector/elements/reveal-shadow-dom-node.html
+++ b/LayoutTests/inspector/elements/reveal-shadow-dom-node.html
@@ -6,8 +6,7 @@
function test()
{
- var elementsPanel = WebInspector.inspectorView.showPanel("elements");
- elementsPanel.treeOutline.addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged);
+ InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged);
var nodeChangesRemaining = 2;
function selectedNodeChanged(event) {
@@ -31,10 +30,10 @@ function test()
{
var shadowDiv = children[0];
InspectorTest.addResult("User-agent shadow DOM hidden:");
- elementsPanel.revealAndSelectNode(shadowDiv.id);
+ WebInspector.panels.elements.revealAndSelectNode(shadowDiv);
WebInspector.settings.showUAShadowDOM.set(true);
InspectorTest.addResult("User-agent shadow DOM shown:");
- elementsPanel.revealAndSelectNode(shadowDiv.id);
+ WebInspector.panels.elements.revealAndSelectNode(shadowDiv);
}
});
}
« no previous file with comments | « LayoutTests/inspector/elements/resolve-alien-node.html ('k') | LayoutTests/inspector/elements/styles/force-pseudo-state.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698