Merge branch 'master' into navtree

This commit is contained in:
Andy Hanson
2016-10-12 08:09:12 -07:00
26 changed files with 840 additions and 51 deletions

View File

@@ -136,6 +136,7 @@ declare namespace FourSlashInterface {
typeDefinitionCountIs(expectedCount: number): void;
implementationListIsEmpty(): void;
isValidBraceCompletionAtPosition(openingBrace?: string): void;
codeFixAvailable(): void;
}
class verify extends verifyNegatable {
assertHasRanges(ranges: Range[]): void;
@@ -208,6 +209,7 @@ declare namespace FourSlashInterface {
noMatchingBracePositionInCurrentFile(bracePosition: number): void;
DocCommentTemplate(expectedText: string, expectedOffset: number, empty?: boolean): void;
noDocCommentTemplate(): void;
codeFixAtPosition(expectedText: string, errorCode?: number): void;
navigationBar(json: any): void;
navigationTree(json: any): void;

View File

@@ -0,0 +1,7 @@
///<reference path="fourslash.ts" />
/////** DOC */
////type /**/T = number
goTo.marker();
verify.quickInfoIs("type T = number", "DOC ");

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
////class Base{
////}
////class C extends Base{
//// constructor() {[| |]
//// }
////}
verify.codeFixAtPosition('super();');

View File

@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
////class Base{
////}
////class C extends Base{
//// constructor() {[| |]
//// }
////}
verify.codeFixAtPosition('super();');

View File

@@ -0,0 +1,13 @@
/// <reference path='fourslash.ts' />
////class Base{
////}
////class C extends Base{
//// private a:number;
//// constructor() {[|
//// this.a = 12;
//// super();|]
//// }
////}
verify.codeFixAtPosition("super(); this.a = 12;");

View File

@@ -0,0 +1,12 @@
/// <reference path='fourslash.ts' />
////class Base{
//// constructor(id: number) { }
////}
////class C extends Base{
//// constructor(private a:number) {
//// super(this.a);
//// }
////}
verify.not.codeFixAvailable();