TypeScript/tests/cases/fourslash/formatDocumentWithTrivia.ts

52 lines
556 B
TypeScript
Raw Normal View History

/// <reference path="fourslash.ts" />
////
2018-10-25 01:14:52 +02:00
////// 1 below
////
2018-10-25 01:14:52 +02:00
////// 2 above
////
////let x;
////
////// abc
////
////let y;
////
2018-10-25 01:14:52 +02:00
////// 3 above
////
////while (true) {
//// while (true) {
//// }
////
2018-10-25 01:14:52 +02:00
//// // 4 above
////}
////
2018-10-25 01:14:52 +02:00
////// 5 above
////
////
format.document();
verify.currentFileContentIs(`
2018-10-25 01:14:52 +02:00
// 1 below
2018-10-25 01:14:52 +02:00
// 2 above
let x;
// abc
let y;
2018-10-25 01:14:52 +02:00
// 3 above
while (true) {
while (true) {
}
2018-10-25 01:14:52 +02:00
// 4 above
}
2018-10-25 01:14:52 +02:00
// 5 above
`);