mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Fixing fourslash tests
This commit is contained in:
@@ -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);
|
||||
@@ -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);
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user