Skip to content

Commit 3ce97af

Browse files
author
Arthur Ozga
committed
Rename labels in tests
1 parent 3e15394 commit 3ce97af

File tree

2 files changed

+56
-52
lines changed

2 files changed

+56
-52
lines changed

tests/cases/fourslash/completionForStringLiteralRelativeImport1.ts

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,45 @@
55
// @Filename: test0.ts
66
//// import * as foo1 from "./*import_as0*/
77
//// import * as foo2 from ".//*import_as1*/
8-
//// import * as foo4 from "./folder//*import_as2*/
8+
//// import * as foo4 from "./d1//*import_as2*/
99

1010
//// import foo6 = require("./*import_equals0*/
1111
//// import foo7 = require(".//*import_equals1*/
12-
//// import foo9 = require("./folder//*import_equals2*/
12+
//// import foo9 = require("./d1//*import_equals2*/
1313

1414
//// var foo11 = require("./*require0*/
1515
//// var foo12 = require(".//*require1*/
16-
//// var foo14 = require("./folder//*require2*/
16+
//// var foo14 = require("./d1//*require2*/
1717

18-
// @Filename: parentTest/sub/test5.ts
19-
//// import * as foo16 from "../g/*import_as3*/
20-
//// import foo17 = require("../g/*import_equals3*/
21-
//// var foo18 = require("../g/*require3*/
18+
// @Filename: d2/d3/test1.ts
19+
//// import * as foo16 from "..//*import_as3*/
20+
//// import foo17 = require("..//*import_equals3*/
21+
//// var foo18 = require("..//*require3*/
2222

2323

2424
// @Filename: f1.ts
2525
//// /*f1*/
26-
// @Filename: f1.js
27-
//// /*f1j*/
28-
// @Filename: f1.d.ts
29-
//// /*f1d*/
30-
// @Filename: f2.tsx
31-
//// /f2*/
32-
// @Filename: f3.js
26+
// @Filename: f2.js
27+
//// /*f2*/
28+
// @Filename: f3.d.ts
3329
//// /*f3*/
34-
// @Filename: f4.jsx
35-
//// /*f4*/
36-
// @Filename: e1.ts
37-
//// /*e1*/
38-
// @Filename: folder/f3.ts
39-
//// /*subf1*/
40-
// @Filename: folder/h1.ts
41-
//// /*subh1*/
42-
// @Filename: parentTest/f4.ts
43-
//// /*parentf1*/
44-
// @Filename: parentTest/g1.ts
45-
//// /*parentg1*/
30+
// @Filename: f4.tsx
31+
//// /f4*/
32+
// @Filename: f5.js
33+
//// /*f5*/
34+
// @Filename: f6.jsx
35+
//// /*f6*/
36+
// @Filename: f7.ts
37+
//// /*f7*/
38+
// @Filename: d1/f8.ts
39+
//// /*d1f1*/
40+
// @Filename: d1/f9.ts
41+
//// /*d1f9*/
42+
// @Filename: d2/f10.ts
43+
//// /*d2f1*/
44+
// @Filename: d2/f11.ts
45+
//// /*d2f11*/
46+
4647
const kinds = ["import_as", "import_equals", "require"];
4748

4849
for (const kind of kinds) {
@@ -51,20 +52,21 @@ for (const kind of kinds) {
5152

5253
goTo.marker(kind + "1");
5354
verify.completionListContains("f1");
54-
verify.completionListContains("f2");
55-
verify.completionListContains("e1");
56-
verify.completionListContains("folder");
57-
verify.completionListContains("parentTest");
58-
verify.not.completionListItemsCountIsGreaterThan(5);
55+
verify.completionListContains("f3");
56+
verify.completionListContains("f4");
57+
verify.completionListContains("f7");
58+
verify.completionListContains("d1");
59+
verify.completionListContains("d2");
60+
verify.not.completionListItemsCountIsGreaterThan(6);
5961

6062
goTo.marker(kind + "2");
61-
verify.completionListContains("f3");
62-
verify.completionListContains("h1");
63+
verify.completionListContains("f8");
64+
verify.completionListContains("f9");
6365
verify.not.completionListItemsCountIsGreaterThan(2);
6466

6567
goTo.marker(kind + "3");
66-
verify.completionListContains("f4");
67-
verify.completionListContains("g1");
68-
verify.completionListContains("sub");
68+
verify.completionListContains("f10");
69+
verify.completionListContains("f11");
70+
verify.completionListContains("d3");
6971
verify.not.completionListItemsCountIsGreaterThan(3);
7072
}

tests/cases/fourslash/completionForStringLiteralRelativeImport2.ts

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616

1717
// @Filename: f1.ts
1818
//// /f1*/
19-
// @Filename: f1.js
20-
//// /*f1j*/
21-
// @Filename: f1.d.ts
22-
//// /*f1d*/
23-
// @Filename: f2.tsx
19+
// @Filename: f2.js
2420
//// /*f2*/
25-
// @Filename: f3.js
21+
// @Filename: f3.d.ts
2622
//// /*f3*/
27-
// @Filename: f4.jsx
23+
// @Filename: f4.tsx
2824
//// /*f4*/
29-
// @Filename: e1.ts
30-
//// /*e1*/
31-
// @Filename: e2.js
32-
//// /*e2*/
25+
// @Filename: f5.js
26+
//// /*f5*/
27+
// @Filename: f6.jsx
28+
//// /*f6*/
29+
// @Filename: g1.ts
30+
//// /*g1*/
31+
// @Filename: g2.js
32+
//// /*g2*/
3333
const kinds = ["import_as", "import_equals", "require"];
3434

3535
for (const kind of kinds) {
@@ -38,16 +38,18 @@ for (const kind of kinds) {
3838
verify.completionListContains("f2");
3939
verify.completionListContains("f3");
4040
verify.completionListContains("f4");
41-
verify.completionListContains("e1");
42-
verify.completionListContains("e2");
43-
verify.not.completionListItemsCountIsGreaterThan(6);
41+
verify.completionListContains("f5");
42+
verify.completionListContains("f6");
43+
verify.completionListContains("g1");
44+
verify.completionListContains("g2");
45+
verify.not.completionListItemsCountIsGreaterThan(8);
4446

4547
goTo.marker(kind + "1");
4648
verify.completionListContains("f1");
4749
verify.completionListContains("f2");
4850
verify.completionListContains("f3");
4951
verify.completionListContains("f4");
50-
verify.completionListContains("e1");
51-
verify.completionListContains("e2");
52+
verify.completionListContains("f5");
53+
verify.completionListContains("f6");
5254
verify.not.completionListItemsCountIsGreaterThan(6);
5355
}

0 commit comments

Comments
 (0)