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

Unified Diff: LayoutTests/http/tests/inspector/command-line-api-inspect.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 | « no previous file | LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/command-line-api-inspect.html
diff --git a/LayoutTests/http/tests/inspector/command-line-api-inspect.html b/LayoutTests/http/tests/inspector/command-line-api-inspect.html
index 0405f907be395958a0203e19bcf7d458e68bc639..0043bfcb4e7db5adac7ae183329e930090cfc9b6 100644
--- a/LayoutTests/http/tests/inspector/command-line-api-inspect.html
+++ b/LayoutTests/http/tests/inspector/command-line-api-inspect.html
@@ -35,11 +35,14 @@ function test()
InspectorTest.runTestSuite([
function testRevealElement(next)
{
- InspectorTest.addSniffer(WebInspector, "_updateFocusedNode", step2);
+ InspectorTest.addSniffer(WebInspector.Revealer, "reveal", step2);
evalAndDump("inspect($('#p1'))");
- function step2()
+ function step2(node)
{
+ if (!(node instanceof WebInspector.DOMNode))
+ return;
+
InspectorTest.addResult("Selected node id: '" + WebInspector.panels.elements.selectedDOMNode().getAttribute("id") + "'.");
next();
}
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/elements-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698