5
5
// @Filename : test0.ts
6
6
//// import * as foo1 from "./*import_as0*/
7
7
//// import * as foo2 from ".//*import_as1*/
8
- //// import * as foo4 from "./folder //*import_as2*/
8
+ //// import * as foo4 from "./d1 //*import_as2*/
9
9
10
10
//// import foo6 = require("./*import_equals0*/
11
11
//// import foo7 = require(".//*import_equals1*/
12
- //// import foo9 = require("./folder //*import_equals2*/
12
+ //// import foo9 = require("./d1 //*import_equals2*/
13
13
14
14
//// var foo11 = require("./*require0*/
15
15
//// var foo12 = require(".//*require1*/
16
- //// var foo14 = require("./folder //*require2*/
16
+ //// var foo14 = require("./d1 //*require2*/
17
17
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*/
22
22
23
23
24
24
// @Filename : f1.ts
25
25
//// /*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
33
29
//// /*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
+
46
47
const kinds = [ "import_as" , "import_equals" , "require" ] ;
47
48
48
49
for ( const kind of kinds ) {
@@ -51,20 +52,21 @@ for (const kind of kinds) {
51
52
52
53
goTo . marker ( kind + "1" ) ;
53
54
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 ) ;
59
61
60
62
goTo . marker ( kind + "2" ) ;
61
- verify . completionListContains ( "f3 " ) ;
62
- verify . completionListContains ( "h1 " ) ;
63
+ verify . completionListContains ( "f8 " ) ;
64
+ verify . completionListContains ( "f9 " ) ;
63
65
verify . not . completionListItemsCountIsGreaterThan ( 2 ) ;
64
66
65
67
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 " ) ;
69
71
verify . not . completionListItemsCountIsGreaterThan ( 3 ) ;
70
72
}
0 commit comments