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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html

Issue 2217783002: DevTools: use view locations in the elements and sources sidebars. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 4 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: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html
index 7dc82c5b4d77f5642e6957d7ca6c45eed67be459..b2864310d4550c16066c2369436bb0fea01a8c4b 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/watch-expressions-panel-switch.html
@@ -24,13 +24,13 @@ var test = function()
function step1()
{
watchExpressionsPane = WebInspector.panels.sources.sidebarPanes.watchExpressions;
- watchExpressionsPane.revealWidget();
- watchExpressionsPane.addExpression("window.document");
- watchExpressionsPane.addExpression("windowa.document");
-
- var testName = InspectorTest.mainTarget.inspectedURL();
- testName = testName.substring(testName.lastIndexOf('/') + 1);
- InspectorTest.showScriptSource(testName, didShowScriptSource);
+ watchExpressionsPane.revealView().then(() => {
+ watchExpressionsPane.addExpression("window.document");
+ watchExpressionsPane.addExpression("windowa.document");
+ var testName = InspectorTest.mainTarget.inspectedURL();
+ testName = testName.substring(testName.lastIndexOf('/') + 1);
+ InspectorTest.showScriptSource(testName, didShowScriptSource);
+ });
}
function didShowScriptSource(sourceFrame)

Powered by Google App Engine
This is Rietveld 408576698