Fix fourslash tests
This commit is contained in:
parent
cf55bf91a0
commit
feeb204260
5 changed files with 18 additions and 18 deletions
|
@ -4,4 +4,4 @@
|
|||
/////**/
|
||||
|
||||
goTo.marker();
|
||||
verify.completionListContains("c", "const c: string", /*documentation*/ undefined, "const");
|
||||
verify.completionListContains("c", "const c: \"s\"", /*documentation*/ undefined, "const");
|
|
@ -10,28 +10,28 @@
|
|||
//// /*7*/
|
||||
////}
|
||||
goTo.marker('1');
|
||||
verify.quickInfoIs("const a: number");
|
||||
verify.quickInfoIs("const a: 10");
|
||||
|
||||
goTo.marker('2');
|
||||
verify.completionListContains("a", "const a: number");
|
||||
verify.quickInfoIs("const a: number");
|
||||
verify.completionListContains("a", "const a: 10");
|
||||
verify.quickInfoIs("const a: 10");
|
||||
|
||||
goTo.marker('3');
|
||||
verify.completionListContains("a", "const a: number");
|
||||
verify.completionListContains("a", "const a: 10");
|
||||
|
||||
goTo.marker('4');
|
||||
verify.quickInfoIs("const b: number");
|
||||
verify.quickInfoIs("const b: 20");
|
||||
|
||||
goTo.marker('5');
|
||||
verify.completionListContains("a", "const a: number");
|
||||
verify.completionListContains("b", "const b: number");
|
||||
verify.quickInfoIs("const b: number");
|
||||
verify.completionListContains("a", "const a: 10");
|
||||
verify.completionListContains("b", "const b: 20");
|
||||
verify.quickInfoIs("const b: 20");
|
||||
|
||||
goTo.marker('6');
|
||||
verify.completionListContains("a", "const a: number");
|
||||
verify.completionListContains("b", "const b: number");
|
||||
verify.quickInfoIs("const a: number");
|
||||
verify.completionListContains("a", "const a: 10");
|
||||
verify.completionListContains("b", "const b: 20");
|
||||
verify.quickInfoIs("const a: 10");
|
||||
|
||||
goTo.marker('7');
|
||||
verify.completionListContains("a", "const a: number");
|
||||
verify.completionListContains("b", "const b: number");
|
||||
verify.completionListContains("a", "const a: 10");
|
||||
verify.completionListContains("b", "const b: 20");
|
||||
|
|
|
@ -13,4 +13,4 @@
|
|||
//// x.canVote/**/;
|
||||
|
||||
goTo.marker();
|
||||
verify.quickInfoIs('(property) Person.canVote: number | boolean');
|
||||
verify.quickInfoIs('(property) Person.canVote: true | 23');
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*definition*/enum E {
|
||||
////enum E {
|
||||
//// value1,
|
||||
//// value2
|
||||
//// /*definition*/value2
|
||||
////}
|
||||
////var x = E.value2;
|
||||
////
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
////const /**/c = 0 ;
|
||||
|
||||
goTo.marker();
|
||||
verify.quickInfoIs("const c: number");
|
||||
verify.quickInfoIs("const c: 0");
|
||||
|
|
Loading…
Reference in a new issue