mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
first commands test (disabled)
This commit is contained in:
parent
052a1dc8a0
commit
2c09792e1c
29
extensions/vscode-api-tests/src/commands.test.ts
Normal file
29
extensions/vscode-api-tests/src/commands.test.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import * as fs from 'fs';
|
||||
import * as os from 'os';
|
||||
import {workspace, window, Position, commands} from 'vscode';
|
||||
import {createRandomFile, deleteFile, cleanUp} from './utils';
|
||||
import {join} from 'path';
|
||||
|
||||
suite("editor tests", () => {
|
||||
|
||||
teardown(cleanUp);
|
||||
|
||||
// test('calling command completes with the extension host updated properly', () => {
|
||||
// return workspace.openTextDocument(join(workspace.rootPath, './far.js')).then(doc => {
|
||||
// return window.showTextDocument(doc).then(editor => {
|
||||
// assert.equal(window.visibleTextEditors.length, 1);
|
||||
// return commands.executeCommand('workbench.action.closeAllEditors').then(() => {
|
||||
// assert.equal(window.visibleTextEditors.length, 0);
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
});
|
Loading…
Reference in a new issue