mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 21:28:04 +00:00
api-tests: avoid rootPath
This commit is contained in:
@@ -105,7 +105,7 @@ suite('commands namespace tests', () => {
|
||||
});
|
||||
|
||||
test('api-command: vscode.open', function () {
|
||||
let uri = Uri.file(join(workspace.rootPath || '', './image.png'));
|
||||
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));
|
||||
|
||||
Reference in New Issue
Block a user