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

Unified Diff: LayoutTests/inspector/sources/debugger/debugger-command-line-api.html

Issue 177653004: DevTools: Get rid of redundant default selection during inspectElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master 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
« no previous file with comments | « LayoutTests/inspector/elements/styles/pseudo-elements.html ('k') | Source/devtools/front_end/DOMAgent.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/debugger-command-line-api.html
diff --git a/LayoutTests/inspector/sources/debugger/debugger-command-line-api.html b/LayoutTests/inspector/sources/debugger/debugger-command-line-api.html
index 0b856910851388c76bee717b15e708bb3395aa62..70e1ba7b8c243eb3dfd12c183c9940b73c0305e7 100644
--- a/LayoutTests/inspector/sources/debugger/debugger-command-line-api.html
+++ b/LayoutTests/inspector/sources/debugger/debugger-command-line-api.html
@@ -12,10 +12,13 @@ function testFunction()
var test = function()
{
InspectorTest.addSniffer(WebInspector, "inspect", inspect);
- InspectorTest.addSniffer(WebInspector, "_updateFocusedNode", updateFocusedNode);
+ InspectorTest.addSniffer(WebInspector.Revealer, "reveal", updateFocusedNode);
- function updateFocusedNode()
+ function updateFocusedNode(node)
{
+ if (!(node instanceof WebInspector.DOMNode))
+ return;
+
InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elements.selectedDOMNode().getAttribute("id") + "'.");
InspectorTest.completeDebuggerTest();
}
« no previous file with comments | « LayoutTests/inspector/elements/styles/pseudo-elements.html ('k') | Source/devtools/front_end/DOMAgent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698