Skip to content

Commit 4082a54

Browse files
Added checks for new identifier location in tests.
1 parent 379ca11 commit 4082a54

11 files changed

+23
-11
lines changed

tests/cases/fourslash/completionListInObjectBindingPattern01.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
goTo.marker();
1212
verify.completionListContains("property1");
13-
verify.completionListContains("property2");
13+
verify.completionListContains("property2");
14+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern02.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
goTo.marker();
1212
verify.completionListContains("property2");
13-
verify.not.completionListContains("property1");
13+
verify.not.completionListContains("property1");
14+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern04.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
goTo.marker();
1212
verify.completionListContains("property1");
13-
verify.completionListContains("property2");
13+
verify.completionListContains("property2");
14+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern05.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@
99
////var { property1/**/ } = foo;
1010

1111
goTo.marker();
12-
verify.completionListContains("property1");
12+
verify.completionListContains("property1");
13+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern07.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
goTo.marker();
1616
verify.completionListContains("propertyOfI_1");
1717
verify.completionListContains("propertyOfI_2");
18-
verify.not.completionListContains("property2");
18+
verify.not.completionListContains("property2");
19+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern08.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@
1515
goTo.marker();
1616
verify.completionListContains("propertyOfI_2");
1717
verify.not.completionListContains("propertyOfI_1");
18-
verify.not.completionListContains("property2");
18+
verify.not.completionListContains("property2");
19+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern09.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ goTo.marker();
1616
verify.completionListContains("property2");
1717
verify.not.completionListContains("property1");
1818
verify.not.completionListContains("propertyOfI_2");
19-
verify.not.completionListContains("propertyOfI_1");
19+
verify.not.completionListContains("propertyOfI_1");
20+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern10.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ verify.completionListContains("property2");
1717
verify.not.completionListContains("property1");
1818
verify.not.completionListContains("propertyOfI_2");
1919
verify.not.completionListContains("propertyOfI_1");
20+
verify.not.completionListAllowsNewIdentifier();
2021

2122
goTo.marker("2");
2223
verify.completionListContains("property1");
23-
verify.completionListContains("property2");
24+
verify.completionListContains("property2");
25+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern11.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
goTo.marker("");
1111
verify.completionListContains("property2");
1212
verify.not.completionListContains("property1");
13-
verify.not.completionListContains("prop1");
13+
verify.not.completionListContains("prop1");
14+
verify.not.completionListAllowsNewIdentifier();

tests/cases/fourslash/completionListInObjectBindingPattern12.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
goTo.marker("");
1212
verify.completionListContains("property2");
13-
verify.not.completionListContains("property1");
13+
verify.not.completionListContains("property1");
14+
verify.not.completionListAllowsNewIdentifier();

0 commit comments

Comments
 (0)