Skip to content

Commit 6040e55

Browse files
committed
add 'find all references' test
1 parent 379d03b commit 6040e55

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <reference path='fourslash.ts'/>
2+
3+
// @Filename: a.ts
4+
////interface A {
5+
//// foo: string;
6+
////}
7+
8+
// @Filename: b.ts
9+
///////<reference path='a.ts'/>
10+
/////*0*/
11+
////function foo(x: A) {
12+
//// x.f/*1*/oo
13+
////}
14+
15+
goTo.marker("1");
16+
verify.referencesCountIs(2);
17+
18+
goTo.marker("0");
19+
edit.insert("\r\n");
20+
21+
goTo.marker("1");
22+
verify.referencesCountIs(2);
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+
/////*0*/
4+
////interface A {
5+
//// foo: string;
6+
////}
7+
////function foo(x: A) {
8+
//// x.f/*1*/oo
9+
////}
10+
11+
goTo.marker("1");
12+
verify.occurrencesAtPositionCount(2);
13+
14+
goTo.marker("0");
15+
edit.insert("\r\n");
16+
17+
goTo.marker("1");
18+
verify.occurrencesAtPositionCount(2);

0 commit comments

Comments
 (0)