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

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

Issue 2412023002: DevTools: migrate InspectorView to tabbed view location. (Closed)
Patch Set: made layers panel closeable. Created 4 years, 2 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/http/tests/inspector/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index b35419ad506e5f93c33d53878466573b67c81368..b5e917c0b58b8ad4e91b8a896091c6973ff63c24 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -1079,10 +1079,11 @@ function runTest(enableWatchDogWhileDebugging)
}
// 3. Run test function.
- Promise.all(promises).then(function() {
+ Promise.all(promises).then(() => {
if (lastLoadedPanel)
- WebInspector.inspectorView.showInitialPanelForTest(lastLoadedPanel);
- testFunction();
+ WebInspector.inspectorView.showPanel(lastLoadedPanel).then(testFunction);
+ else
+ testFunction();
}).catch(function(e) {
console.error(e);
InspectorTest.completeTest();

Powered by Google App Engine
This is Rietveld 408576698