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

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

Issue 208223002: DevTools: [Elements] Restore selected shadow DOM elements on reload (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed 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/inspector/elements/elements-panel-shadow-selection-on-refresh.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 a3f5fde08c2240e828fd39b920f63dc2b8bc421f..876c22e0ce0ed48e5493a54ed99d8dba1a5f2b49 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -73,12 +73,17 @@ InspectorTest.expandedNodeWithId = function(idValue)
return result;
}
+InspectorTest.selectNode = function(node)
+{
+ WebInspector.Revealer.reveal(node);
+}
+
InspectorTest.selectNodeWithId = function(idValue, callback)
{
callback = InspectorTest.safeWrap(callback);
function onNodeFound(node)
{
- WebInspector.Revealer.reveal(node);
+ InspectorTest.selectNode(node);
callback(node);
}
InspectorTest.nodeWithId(idValue, onNodeFound);
« no previous file with comments | « no previous file | LayoutTests/inspector/elements/elements-panel-shadow-selection-on-refresh.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698