TypeScript/tests/cases/fourslash/tryCatchFinallyFormating.ts
2014-07-29 12:17:23 -07:00

44 lines
878 B
TypeScript

/// <reference path='fourslash.ts' />
////try {
/////*tryInTryCatchFinally*/ // comment
////}
////catch (e) {
/////*catchInTryCatchFinally*/ // comment
////}
////finally {
/////*finalyInTryCatchFinally*/ // comment
////}
////
////try {
/////*tryInTryFinally*/ // comment
////}
////finally {
/////*finalyInTryFinally*/ // comment
////}
////
////try {
/////*tryInTryCatch*/ // comment
////}
////catch (e) {
/////*catchInTryCatch*/ // comment
////}
format.document();
var markers = [
"tryInTryCatchFinally",
"catchInTryCatchFinally",
"finalyInTryCatchFinally",
"tryInTryFinally",
"finalyInTryFinally",
"tryInTryCatch",
"catchInTryCatch"
];
markers.forEach((marker) => {
// Comments should be indented
goTo.marker(marker);
verify.currentLineContentIs(' // comment');
});