Added tests.
This commit is contained in:
parent
3418a49f8a
commit
e49fc058b0
9 changed files with 64 additions and 0 deletions
|
@ -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");
|
|
@ -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");
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////for (let i = 0; /*1*/
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("i");
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////for (let i = 0; i < 10; i++) /*1*/
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("i");
|
|
@ -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");
|
|
@ -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");
|
|
@ -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");
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////for (let i = 0; i < 10; i++) i;/*1*/
|
||||
|
||||
goTo.marker("1");
|
||||
verify.not.completionListContains("i");
|
|
@ -0,0 +1,6 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////for (let i = 0; i < 10; i++);/*1*/
|
||||
|
||||
goTo.marker("1");
|
||||
verify.not.completionListContains("i");
|
Loading…
Reference in a new issue