| Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| index 79f12c2046db888d4651fb49bed6751f38bb9701..c6c1c298f8202c4a8f1ca53c4c362511875e1dcd 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-go-to-file-dialog.html
|
| @@ -24,8 +24,7 @@ function test()
|
|
|
| function goToSourceDialogBeforeBinding(next)
|
| {
|
| - dumpGoToSourceDialog();
|
| - next();
|
| + dumpGoToSourceDialog(next);
|
| },
|
|
|
| function addFileSystemMapping(next)
|
| @@ -36,21 +35,22 @@ function test()
|
|
|
| function goToSourceAfterBinding(next)
|
| {
|
| - dumpGoToSourceDialog();
|
| - next();
|
| + dumpGoToSourceDialog(next);
|
| },
|
| ]);
|
|
|
| - function dumpGoToSourceDialog()
|
| + function dumpGoToSourceDialog(next)
|
| {
|
| - UI.panels.sources._sourcesView.showOpenResourceDialog();
|
| - var dialog = Sources.OpenResourceDialog._instanceForTest;
|
| - var keys = [];
|
| - for (var i = 0; i < dialog.itemCount(); ++i)
|
| - keys.push(dialog.itemKeyAt(i));
|
| - keys.sort();
|
| - InspectorTest.addResult(keys.join("\n"));
|
| - UI.Dialog._instance.hide();
|
| + QuickOpen.QuickOpen.show('');
|
| + InspectorTest.addSnifferPromise(QuickOpen.QuickOpen.prototype, '_delegateLoadedForTest').then(delegate => {
|
| + var keys = [];
|
| + for (var i = 0; i < delegate.itemCount(); ++i)
|
| + keys.push(delegate.itemKeyAt(i));
|
| + keys.sort();
|
| + InspectorTest.addResult(keys.join("\n"));
|
| + UI.Dialog._instance.hide();
|
| + next();
|
| + });
|
| }
|
| };
|
| </script>
|
|
|