| 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();
|
|
|