Move non abbr emmet cmds from core to extension #29969

This commit is contained in:
Ramya Achutha Rao
2017-07-26 16:30:50 -07:00
parent cfeac5b418
commit 4cbe0d35ea
10 changed files with 197 additions and 91 deletions

View File

@@ -4,8 +4,9 @@
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import { Selection, commands } from 'vscode';
import { Selection } from 'vscode';
import { withRandomFileEditor, closeAllEditors } from './testUtils';
import { updateImageSize } from '../updateImageSize';
import * as path from 'path';
suite('Tests for Emmet actions on html tags', () => {
@@ -54,7 +55,7 @@ suite('Tests for Emmet actions on html tags', () => {
new Selection(11, 50, 11, 50)
];
return commands.executeCommand('emmet.updateImageSize').then(() => {
return updateImageSize().then(() => {
assert.equal(doc.getText(), expectedContents);
return Promise.resolve();
});
@@ -111,7 +112,7 @@ suite('Tests for Emmet actions on html tags', () => {
new Selection(13, 50, 13, 50)
];
return commands.executeCommand('emmet.updateImageSize').then(() => {
return updateImageSize().then(() => {
assert.equal(doc.getText(), expectedContents);
return Promise.resolve();
});
@@ -140,7 +141,7 @@ suite('Tests for Emmet actions on html tags', () => {
new Selection(4, 50, 4, 50)
];
return commands.executeCommand('emmet.updateImageSize').then(() => {
return updateImageSize().then(() => {
assert.equal(doc.getText(), expectedContents);
return Promise.resolve();
});