From 2c09792e1c3fb49d5d5d32c634ca594f56efba6e Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Wed, 25 Nov 2015 12:13:40 +0100 Subject: [PATCH] first commands test (disabled) --- .../vscode-api-tests/src/commands.test.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 extensions/vscode-api-tests/src/commands.test.ts diff --git a/extensions/vscode-api-tests/src/commands.test.ts b/extensions/vscode-api-tests/src/commands.test.ts new file mode 100644 index 00000000000..6d9453f3510 --- /dev/null +++ b/extensions/vscode-api-tests/src/commands.test.ts @@ -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); + // }); + // }); + // }); + // }); +}); \ No newline at end of file -- GitLab