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

Unified Diff: LayoutTests/http/tests/inspector/elements-test.js

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
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 a94515ac8afa25a70061c62795453118d370f2f8..ed3f3ce06e1c4f817f75dd6fc646fb0fbdc3de60 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -68,8 +68,7 @@ InspectorTest.selectNodeWithId = function(idValue, callback)
callback = InspectorTest.safeWrap(callback);
function onNodeFound(node)
{
- if (node)
- WebInspector._updateFocusedNode(node.id);
+ WebInspector.Revealer.reveal(node);
callback(node);
}
InspectorTest.nodeWithId(idValue, onNodeFound);

Powered by Google App Engine
This is Rietveld 408576698