Refactor fourslash testing for codeFixes

This commit is contained in:
Arthur Ozga
2016-11-01 15:38:07 -07:00
parent cbaea9996c
commit bc2134681d
2 changed files with 127 additions and 35 deletions

View File

@@ -98,6 +98,10 @@ declare namespace FourSlashInterface {
start: number;
end: number;
}
interface ErrorIdentifier {
code: number;
count: number
}
class test_ {
markers(): Marker[];
markerNames(): string[];
@@ -210,6 +214,7 @@ declare namespace FourSlashInterface {
DocCommentTemplate(expectedText: string, expectedOffset: number, empty?: boolean): void;
noDocCommentTemplate(): void;
codeFixAtPosition(expectedText: string, errorCode?: number): void;
fileAfterCodeFixes(expectedContents: string, fileName?: string, errorsToFix?: ErrorIdentifier[]): void;
navigationBar(json: any): void;
navigationTree(json: any): void;