Skip to content

Commit d3c59f4

Browse files
Added more tests.
1 parent 498d06f commit d3c59f4

File tree

4 files changed

+67
-0
lines changed

4 files changed

+67
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////interface I {
4+
//// property1: number;
5+
//// property2: string;
6+
////}
7+
////
8+
////var foo: I;
9+
////var { property1, property2, /**/ } = foo;
10+
11+
goTo.marker();
12+
verify.completionListIsEmpty();
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////interface I {
4+
//// propertyOfI_1: number;
5+
//// propertyOfI_2: string;
6+
////}
7+
////interface J {
8+
//// property1: I;
9+
//// property2: string;
10+
////}
11+
////
12+
////var foo: J;
13+
////var { property1: { /**/ } } = foo;
14+
15+
goTo.marker();
16+
verify.completionListContains("propertyOfI_1");
17+
verify.completionListContains("propertyOfI_2");
18+
verify.not.completionListContains("property2");
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////interface I {
4+
//// propertyOfI_1: number;
5+
//// propertyOfI_2: string;
6+
////}
7+
////interface J {
8+
//// property1: I;
9+
//// property2: string;
10+
////}
11+
////
12+
////var foo: J;
13+
////var { property1: { propertyOfI_1, /**/ } } = foo;
14+
15+
goTo.marker();
16+
verify.completionListContains("propertyOfI_2");
17+
verify.not.completionListContains("propertyOfI_1");
18+
verify.not.completionListContains("property2");
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
////interface I {
4+
//// propertyOfI_1: number;
5+
//// propertyOfI_2: string;
6+
////}
7+
////interface J {
8+
//// property1: I;
9+
//// property2: string;
10+
////}
11+
////
12+
////var foo: J;
13+
////var { property1: { propertyOfI_1, }, /**/ } = foo;
14+
15+
goTo.marker();
16+
verify.completionListContains("property2");
17+
verify.not.completionListContains("property1");
18+
verify.not.completionListContains("propertyOfI_2");
19+
verify.not.completionListContains("propertyOfI_1");

0 commit comments

Comments
 (0)