Fixing fourslash tests

This commit is contained in:
Anders Hejlsberg
2015-07-19 11:22:49 -07:00
parent a05ebc469c
commit 3cbc3db201
6 changed files with 9 additions and 9 deletions

View File

@@ -15,6 +15,6 @@
////x./**/
goTo.marker();
verify.memberListContains("commonProperty", "(property) commonProperty: string | number");
verify.memberListContains("commonProperty", "(property) commonProperty: number | string");
verify.memberListContains("commonFunction", "(method) commonFunction(): number");
verify.memberListCount(2);

View File

@@ -15,6 +15,6 @@
////x.commonProperty./**/
goTo.marker();
verify.memberListContains("toString", "(property) toString: (() => string) | ((radix?: number) => string)");
verify.memberListContains("valueOf", "(method) valueOf(): string | number");
verify.memberListContains("toString", "(property) toString: ((radix?: number) => string) | (() => string)");
verify.memberListContains("valueOf", "(method) valueOf(): number | string");
verify.memberListCount(2);

View File

@@ -18,9 +18,9 @@
////var /*4*/r4 = _./*41*/all([<any>true], _.identity);
goTo.marker('1');
verify.quickInfoIs('var r: string | number | boolean');
verify.quickInfoIs('var r: boolean | number | string');
goTo.marker('11');
verify.quickInfoIs('(method) Underscore.Static.all<string | number | boolean>(list: (string | number | boolean)[], iterator?: Underscore.Iterator<string | number | boolean, boolean>, context?: any): string | number | boolean');
verify.quickInfoIs('(method) Underscore.Static.all<boolean | number | string>(list: (boolean | number | string)[], iterator?: Underscore.Iterator<boolean | number | string, boolean>, context?: any): boolean | number | string');
goTo.marker('2');
verify.quickInfoIs('var r2: boolean');

View File

@@ -18,9 +18,9 @@
////var /*4*/r4 = _./*41*/all([<any>true], _.identity);
goTo.marker('1');
verify.quickInfoIs('var r: string | number | boolean');
verify.quickInfoIs('var r: boolean | number | string');
goTo.marker('11');
verify.quickInfoIs('(method) Underscore.Static.all<string | number | boolean>(list: (string | number | boolean)[], iterator?: Underscore.Iterator<string | number | boolean, boolean>, context?: any): string | number | boolean');
verify.quickInfoIs('(method) Underscore.Static.all<boolean | number | string>(list: (boolean | number | string)[], iterator?: Underscore.Iterator<boolean | number | string, boolean>, context?: any): boolean | number | string');
goTo.marker('2');
verify.quickInfoIs('var r2: boolean');

View File

@@ -21,7 +21,7 @@ verify.quickInfoIs('var x: One | Two');
goTo.marker("2");
verify.quickInfoIs('(property) commonProperty: string | number');
verify.quickInfoIs('(property) commonProperty: number | string');
goTo.marker("3");
verify.quickInfoIs('(method) commonFunction(): number');

View File

@@ -21,7 +21,7 @@ verify.quickInfoIs('var x: One | Two');
goTo.marker("2");
verify.quickInfoIs('(property) commonProperty: string | number');
verify.quickInfoIs('(property) commonProperty: number | string');
goTo.marker("3");
verify.quickInfoIs('(method) commonFunction(): number');