Added tests.

This commit is contained in:
Daniel Rosenwasser 2015-03-17 13:33:01 -07:00
parent 3418a49f8a
commit e49fc058b0
9 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
////// should NOT see a and b
////foo((a, b) => a,/*1*/
goTo.marker("1");
verify.not.completionListContains("a");
verify.not.completionListContains("b");

View file

@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
////// should NOT see a and b
////foo((a, b) => (a,/*1*/
goTo.marker("1");
verify.completionListContains("a");
verify.completionListContains("b");

View file

@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////for (let i = 0; /*1*/
goTo.marker("1");
verify.completionListContains("i");

View file

@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////for (let i = 0; i < 10; i++) /*1*/
goTo.marker("1");
verify.completionListContains("i");

View file

@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
////// no a or b
/////*1*/(a, b) => { }
goTo.marker("1");
verify.not.completionListContains("a");
verify.not.completionListContains("b");

View file

@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
////// no a or b
////(a, b) => { }/*1*/
goTo.marker("1");
verify.not.completionListContains("a");
verify.not.completionListContains("b");

View file

@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
////// no a or b
/////*1*/function f (a, b) {}
goTo.marker("1");
verify.not.completionListContains("a");
verify.not.completionListContains("b");

View file

@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////for (let i = 0; i < 10; i++) i;/*1*/
goTo.marker("1");
verify.not.completionListContains("i");

View file

@ -0,0 +1,6 @@
/// <reference path='fourslash.ts' />
////for (let i = 0; i < 10; i++);/*1*/
goTo.marker("1");
verify.not.completionListContains("i");