mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Enable completion fourslash tests
This commit is contained in:
1 parent
11b9118cab
commit
df7066f2e7
55 files changed
+28
-26
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -12,10 +12,10 @@
|
||||
////f2./*2*/ // here bar has return type any, but bar2 is Foo2
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains('bar', '(): IFoo');
|
||||
verify.completionListContains('bar', '() => IFoo');
|
||||
verify.not.completionListContains('bar2');
|
||||
edit.insert('bar();'); // just to make the file valid before checking next completion location
|
||||
|
||||
goTo.marker('2');
|
||||
verify.completionListContains('bar', '(): IFoo');
|
||||
verify.completionListContains('bar2', '(): IFoo2');
|
||||
verify.completionListContains('bar', '() => IFoo');
|
||||
verify.completionListContains('bar2', '() => IFoo2');
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -24,9 +24,9 @@ goTo.marker("insideFunctionExpression");
|
||||
verify.memberListContains("foo");
|
||||
|
||||
goTo.marker("referenceInsideFunctionExpression");
|
||||
verify.quickInfoIs("(): number");
|
||||
verify.quickInfoIs("() => number");
|
||||
|
||||
goTo.marker("referenceInGlobalScope");
|
||||
verify.quickInfoIs("(a: number): string");
|
||||
verify.quickInfoIs("(a: number) => string");
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -11,4 +11,4 @@
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListContains("bar", 'any');
|
||||
verify.memberListContains("foo", '(bar: any): any');
|
||||
verify.memberListContains("foo", '(bar: any) => any');
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,18 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////module M {
|
||||
//// enum E {
|
||||
//// A, B
|
||||
//// }
|
||||
//// enum E {
|
||||
//// C = 0, D
|
||||
//// }
|
||||
//// var x = E./*1*/
|
||||
////}
|
||||
|
||||
|
||||
goTo.marker('1');
|
||||
verify.memberListContains('A', 'E', undefined, "E.A");
|
||||
verify.memberListContains('B', 'E', undefined, "E.B");
|
||||
verify.memberListContains('C', 'E', undefined, "E.C");
|
||||
verify.memberListContains('D', 'E', undefined, "E.D");
|
||||
File renamed without changes.
File renamed without changes.
+1
@@ -10,6 +10,7 @@
|
||||
////f./**/
|
||||
|
||||
goTo.marker();
|
||||
debug.printCompletionListMembers();
|
||||
verify.memberListCount(2);
|
||||
verify.memberListContains('pubMeth', '(): void');
|
||||
verify.memberListContains('pubProp', 'number');
|
||||
File renamed without changes.
+1
@@ -11,5 +11,6 @@
|
||||
////c./**/ // test on c.
|
||||
|
||||
goTo.marker();
|
||||
debug.printCompletionListMembers();
|
||||
verify.memberListCount(1);
|
||||
verify.memberListContains('pub', 'number');
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2
-2
@@ -8,6 +8,6 @@
|
||||
////}
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListContains('privMeth', '(): void');
|
||||
verify.memberListContains('pubMeth', '(): void');
|
||||
verify.memberListContains('privMeth', '() => void');
|
||||
verify.memberListContains('pubMeth', '() => void');
|
||||
verify.memberListContains('pubProp', 'number');
|
||||
@@ -1,18 +0,0 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////module M {
|
||||
//// enum E {
|
||||
//// A, B
|
||||
//// }
|
||||
//// enum E {
|
||||
//// C = 0, D
|
||||
//// }
|
||||
//// var x = E./*1*/
|
||||
////}
|
||||
|
||||
|
||||
goTo.marker('1');
|
||||
verify.memberListContains('A', 'E', undefined, "M.E.A");
|
||||
verify.memberListContains('B', 'E', undefined, "M.E.B");
|
||||
verify.memberListContains('C', 'E', undefined, "M.E.C");
|
||||
verify.memberListContains('D', 'E', undefined, "M.E.D");
|
||||
Reference in new issue
Block a user