mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Fixed spelling error
This commit is contained in:
@@ -1941,15 +1941,15 @@ module FourSlash {
|
||||
}
|
||||
}
|
||||
|
||||
public verfiyDocCommentScaffolding(position: number, expected: ts.TextInsertion) {
|
||||
let actual = this.languageService.getDocCommentScaffoldingAtPosition(this.activeFile.fileName, position);
|
||||
public verifyDocCommentScaffolding(expected: ts.TextInsertion) {
|
||||
let actual = this.languageService.getDocCommentScaffoldingAtPosition(this.activeFile.fileName, this.currentCaretPosition);
|
||||
|
||||
if (actual.newText !== expected.newText) {
|
||||
this.raiseError('verfiyDocCommentScaffolding failed - expected insertion:\n' + expected.newText + 'actual insertion:\n' + actual.newText);
|
||||
this.raiseError('verifyDocCommentScaffolding failed - expected insertion:\n' + expected.newText + 'actual insertion:\n' + actual.newText);
|
||||
}
|
||||
|
||||
if (actual.cursorOffset !== expected.cursorOffset) {
|
||||
this.raiseError('verfiyDocCommentScaffolding failed - expected cursorOffset: ' + expected.cursorOffset + ',\tactual cursorOffset:' + actual.cursorOffset);
|
||||
this.raiseError('verifyDocCommentScaffolding failed - expected cursorOffset: ' + expected.cursorOffset + ',\tactual cursorOffset:' + actual.cursorOffset);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2747,4 +2747,4 @@ module FourSlash {
|
||||
fileName: fileName
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -380,7 +380,7 @@ module FourSlashInterface {
|
||||
|
||||
// Will fix in fourslash-referencing
|
||||
public DocCommentScaffolding(position: number, expectedText: string, expectedOffset: number) {
|
||||
FourSlash.currentTestState.verifyDocCommentScaffolding(position, { newText: expectedText, cursorOffset: expectedOffset });
|
||||
FourSlash.currentTestState.verifyDocCommentScaffolding({ newText: expectedText, cursorOffset: expectedOffset });
|
||||
}
|
||||
|
||||
public getScriptLexicalStructureListCount(count: number) {
|
||||
|
||||
Reference in New Issue
Block a user