Enable some more tests
This commit is contained in:
parent
6a92b21151
commit
f45ab4229c
|
@ -3,7 +3,7 @@
|
|||
// Class references should work across file and not find local variables.
|
||||
|
||||
// @Filename: referenceToClass_1.ts
|
||||
////class foo/*1*/ {
|
||||
////class /*1*/foo {
|
||||
//// public n: /*2*/foo;
|
||||
//// public foo: number;
|
||||
////}
|
||||
|
|
|
@ -1,30 +1,27 @@
|
|||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// References to local inside a class.
|
||||
|
||||
////var n = 14;
|
||||
////
|
||||
////class foo {
|
||||
//// private /*1*/n = 0;
|
||||
////
|
||||
//// public bar() {
|
||||
//// this.n = 9;
|
||||
//// }
|
||||
////
|
||||
//// constructor() {
|
||||
//// this.n/*2*/ = 4;
|
||||
//// }
|
||||
////
|
||||
//// public bar2() {
|
||||
//// var n = 12;
|
||||
//// }
|
||||
////}
|
||||
|
||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
||||
edit.insert('');
|
||||
|
||||
goTo.marker("1");
|
||||
verify.referencesCountIs(3);
|
||||
|
||||
goTo.marker("2");
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
// References to local inside a class.
|
||||
|
||||
////var n = 14;
|
||||
////
|
||||
////class foo {
|
||||
//// private /*1*/n = 0;
|
||||
////
|
||||
//// public bar() {
|
||||
//// this.n = 9;
|
||||
//// }
|
||||
////
|
||||
//// constructor() {
|
||||
//// this./*2*/n = 4;
|
||||
//// }
|
||||
////
|
||||
//// public bar2() {
|
||||
//// var n = 12;
|
||||
//// }
|
||||
////}
|
||||
|
||||
goTo.marker("1");
|
||||
verify.referencesCountIs(3);
|
||||
|
||||
goTo.marker("2");
|
||||
verify.referencesCountIs(3);
|
|
@ -3,7 +3,7 @@
|
|||
////var x;
|
||||
////var n;
|
||||
////
|
||||
////function n(x: number, n/*1*/: number) {
|
||||
////function n(x: number, /*1*/n: number) {
|
||||
//// /*2*/n = 32;
|
||||
//// x = n;
|
||||
////}
|
||||
|
|
|
@ -73,12 +73,12 @@
|
|||
|
||||
// References to a field declared in a base class.
|
||||
goTo.marker("1");
|
||||
verify.referencesCountIs(3);
|
||||
verify.referencesCountIs(2);
|
||||
|
||||
// References to a field declared in a base interface.
|
||||
goTo.marker("2");
|
||||
verify.referencesCountIs(3);
|
||||
verify.referencesCountIs(2);
|
||||
|
||||
// References to a field declared in a chain of base class and interfaces.
|
||||
goTo.marker("3");
|
||||
verify.referencesCountIs(6);
|
||||
verify.referencesCountIs(2);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
////}
|
||||
////
|
||||
////class foo2 {
|
||||
//// private x = foo.n/*2*/;
|
||||
//// private x = foo./*2*/n;
|
||||
//// constructor() {
|
||||
//// foo./*3*/n = x;
|
||||
//// }
|
||||
|
|
Loading…
Reference in a new issue