@@ -104,13 +104,13 @@ suite('commands namespace tests', () => {
104104 return Promise . all ( [ a , b , c , d , e ] ) ;
105105 } ) ;
106106
107- // test('api-command: vscode.open', function () {
108- // let uri = Uri.parse(workspace.workspaceFolders![0].uri.toString() + '/image.png');
109- // let a = commands.executeCommand('vscode.open', uri).then(() => assert.ok(true), () => assert.ok(false));
110- // let b = commands.executeCommand('vscode.open', uri, ViewColumn.Two).then(() => assert.ok(true), () => assert.ok(false));
111- // let c = commands.executeCommand('vscode.open').then(() => assert.ok(false), () => assert.ok(true));
112- // let d = commands.executeCommand('vscode.open', uri, true).then(() => assert.ok(false), () => assert.ok(true));
113-
114- // return Promise.all([a, b, c, d]);
115- // });
107+ test ( 'api-command: vscode.open' , function ( ) {
108+ let uri = Uri . parse ( workspace . workspaceFolders ! [ 0 ] . uri . toString ( ) + '/image.png' ) ;
109+ let a = commands . executeCommand ( 'vscode.open' , uri ) . then ( ( ) => assert . ok ( true ) , ( ) => assert . ok ( false ) ) ;
110+ let b = commands . executeCommand ( 'vscode.open' , uri , ViewColumn . Two ) . then ( ( ) => assert . ok ( true ) , ( ) => assert . ok ( false ) ) ;
111+ let c = commands . executeCommand ( 'vscode.open' ) . then ( ( ) => assert . ok ( false ) , ( ) => assert . ok ( true ) ) ;
112+ let d = commands . executeCommand ( 'vscode.open' , uri , true ) . then ( ( ) => assert . ok ( false ) , ( ) => assert . ok ( true ) ) ;
113+
114+ return Promise . all ( [ a , b , c , d ] ) ;
115+ } ) ;
116116} ) ;
0 commit comments