fix vscode.open() tests (#81833)

This commit is contained in:
Benjamin Pasero
2019-10-02 12:28:48 +02:00
committed by GitHub
parent 46043d41c8
commit bb0dbb3b9c
3 changed files with 10 additions and 8 deletions

View File

@@ -104,13 +104,13 @@ suite('commands namespace tests', () => {
return Promise.all([a, b, c, d, e]);
});
// test('api-command: vscode.open', function () {
// let uri = Uri.parse(workspace.workspaceFolders![0].uri.toString() + '/image.png');
// let a = commands.executeCommand('vscode.open', uri).then(() => assert.ok(true), () => assert.ok(false));
// let b = commands.executeCommand('vscode.open', uri, ViewColumn.Two).then(() => assert.ok(true), () => assert.ok(false));
// let c = commands.executeCommand('vscode.open').then(() => assert.ok(false), () => assert.ok(true));
// let d = commands.executeCommand('vscode.open', uri, true).then(() => assert.ok(false), () => assert.ok(true));
test('api-command: vscode.open', function () {
let uri = Uri.parse(workspace.workspaceFolders![0].uri.toString() + '/image.png');
let a = commands.executeCommand('vscode.open', uri).then(() => assert.ok(true), () => assert.ok(false));
let b = commands.executeCommand('vscode.open', uri, ViewColumn.Two).then(() => assert.ok(true), () => assert.ok(false));
let c = commands.executeCommand('vscode.open').then(() => assert.ok(false), () => assert.ok(true));
let d = commands.executeCommand('vscode.open', uri, true).then(() => assert.ok(false), () => assert.ok(true));
// return Promise.all([a, b, c, d]);
// });
return Promise.all([a, b, c, d]);
});
});