add 'find all references' test

This commit is contained in:
Vladimir Matveev
2015-01-23 15:36:36 -08:00
parent 379d03b5a7
commit 6040e55fa4
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/// <reference path='fourslash.ts'/>
// @Filename: a.ts
////interface A {
//// foo: string;
////}
// @Filename: b.ts
///////<reference path='a.ts'/>
/////*0*/
////function foo(x: A) {
//// x.f/*1*/oo
////}
goTo.marker("1");
verify.referencesCountIs(2);
goTo.marker("0");
edit.insert("\r\n");
goTo.marker("1");
verify.referencesCountIs(2);

View File

@@ -0,0 +1,18 @@
/// <reference path='fourslash.ts'/>
/////*0*/
////interface A {
//// foo: string;
////}
////function foo(x: A) {
//// x.f/*1*/oo
////}
goTo.marker("1");
verify.occurrencesAtPositionCount(2);
goTo.marker("0");
edit.insert("\r\n");
goTo.marker("1");
verify.occurrencesAtPositionCount(2);