Fixed spelling error

This commit is contained in:
Arthur Ozga
2015-07-23 11:20:16 -07:00
parent 831c025890
commit acb9401345
2 changed files with 6 additions and 6 deletions

View File

@@ -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
};
}
}
}

View File

@@ -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) {