test for showWorkspaceFolderPick

This commit is contained in:
Benjamin Pasero
2017-10-12 10:39:30 +02:00
parent 819db21f2c
commit 20d7f8ab15
+10 -10
View File
@@ -349,17 +349,17 @@ suite('window namespace tests', () => {
return Promise.all([a, b]);
});
// test('showWorkspaceFolderPick', function () {
// const p = (<any>window).showWorkspaceFolderPick(undefined);
test('showWorkspaceFolderPick', function () {
const p = (<any>window).showWorkspaceFolderPick(undefined);
// return commands.executeCommand('workbench.action.acceptSelectedQuickOpenItem').then(() => {
// return p.then(workspace => {
// assert.ok(true);
// }, error => {
// assert.ok(false);
// });
// });
// });
return commands.executeCommand('workbench.action.acceptSelectedQuickOpenItem').then(() => {
return p.then(workspace => {
assert.ok(true);
}, error => {
assert.ok(false);
});
});
});
test('Default value for showInput Box accepted even if fails validateInput, #33691', function () {
const result = window.showInputBox({