update tests
This commit is contained in:
parent
a0a56c041f
commit
d208042647
1 changed files with 3 additions and 3 deletions
|
@ -890,7 +890,7 @@ suite('ExtHostLanguageFeatures', function() {
|
||||||
test('Format Range, data conversion', function() {
|
test('Format Range, data conversion', function() {
|
||||||
disposables.push(extHost.registerDocumentRangeFormattingEditProvider(defaultSelector, <vscode.DocumentRangeFormattingEditProvider>{
|
disposables.push(extHost.registerDocumentRangeFormattingEditProvider(defaultSelector, <vscode.DocumentRangeFormattingEditProvider>{
|
||||||
provideDocumentRangeFormattingEdits(): any {
|
provideDocumentRangeFormattingEdits(): any {
|
||||||
return [new types.TextEdit(new types.Range(0, 0, 1, 1), 'testing')];
|
return [new types.TextEdit(new types.Range(0, 0, 0, 0), 'testing')];
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -899,7 +899,7 @@ suite('ExtHostLanguageFeatures', function() {
|
||||||
assert.equal(value.length, 1);
|
assert.equal(value.length, 1);
|
||||||
let [first] = value;
|
let [first] = value;
|
||||||
assert.equal(first.text, 'testing');
|
assert.equal(first.text, 'testing');
|
||||||
assert.deepEqual(first.range, { startLineNumber: 1, startColumn: 1, endLineNumber: 2, endColumn: 2 });
|
assert.deepEqual(first.range, { startLineNumber: 1, startColumn: 1, endLineNumber: 1, endColumn: 1 });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -907,7 +907,7 @@ suite('ExtHostLanguageFeatures', function() {
|
||||||
test('Format Range, + format_doc', function() {
|
test('Format Range, + format_doc', function() {
|
||||||
disposables.push(extHost.registerDocumentRangeFormattingEditProvider(defaultSelector, <vscode.DocumentRangeFormattingEditProvider>{
|
disposables.push(extHost.registerDocumentRangeFormattingEditProvider(defaultSelector, <vscode.DocumentRangeFormattingEditProvider>{
|
||||||
provideDocumentRangeFormattingEdits(): any {
|
provideDocumentRangeFormattingEdits(): any {
|
||||||
return [new types.TextEdit(new types.Range(0, 0, 1, 1), 'range')];
|
return [new types.TextEdit(new types.Range(0, 0, 0, 0), 'range')];
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
disposables.push(extHost.registerDocumentFormattingEditProvider(defaultSelector, <vscode.DocumentFormattingEditProvider>{
|
disposables.push(extHost.registerDocumentFormattingEditProvider(defaultSelector, <vscode.DocumentFormattingEditProvider>{
|
||||||
|
|
Loading…
Reference in a new issue