2014-09-30 02:41:07 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
/////** Enum of colors*/
|
|
|
|
////enum /*1*/Colors {
|
|
|
|
//// /** Fancy name for 'blue'*/
|
|
|
|
//// /*2*/Cornflower,
|
|
|
|
//// /** Fancy name for 'pink'*/
|
|
|
|
//// /*3*/FancyPink
|
|
|
|
////}
|
|
|
|
////var /*4*/x = /*5*/Colors./*6*/Cornflower;
|
|
|
|
////x = Colors./*7*/FancyPink;
|
|
|
|
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfos({
|
|
|
|
1: ["enum Colors", "Enum of colors"],
|
|
|
|
2: ["(enum member) Colors.Cornflower = 0", "Fancy name for 'blue'"],
|
|
|
|
3: ["(enum member) Colors.FancyPink = 1", "Fancy name for 'pink'"],
|
|
|
|
4: "var x: Colors"
|
|
|
|
});
|
2014-09-30 02:41:07 +02:00
|
|
|
|
|
|
|
goTo.marker('5');
|
|
|
|
verify.completionListContains("Colors", "enum Colors", "Enum of colors");
|
|
|
|
verify.quickInfoIs("enum Colors", "Enum of colors");
|
|
|
|
|
|
|
|
goTo.marker('6');
|
2016-12-07 22:36:11 +01:00
|
|
|
verify.completionListContains("Cornflower", "(enum member) Colors.Cornflower = 0", "Fancy name for 'blue'");
|
|
|
|
verify.completionListContains("FancyPink", "(enum member) Colors.FancyPink = 1", "Fancy name for 'pink'");
|
2014-09-30 02:41:07 +02:00
|
|
|
verify.quickInfoIs("(enum member) Colors.Cornflower = 0", "Fancy name for 'blue'");
|
|
|
|
|
|
|
|
goTo.marker('7');
|
2016-12-07 22:36:11 +01:00
|
|
|
verify.completionListContains("Cornflower", "(enum member) Colors.Cornflower = 0", "Fancy name for 'blue'");
|
|
|
|
verify.completionListContains("FancyPink", "(enum member) Colors.FancyPink = 1", "Fancy name for 'pink'");
|
2014-09-30 02:41:07 +02:00
|
|
|
verify.quickInfoIs("(enum member) Colors.FancyPink = 1", "Fancy name for 'pink'");
|