TypeScript/tests/cases/fourslash/smartIndentStatementSwitch.ts
2014-09-11 12:04:49 -07:00

21 lines
607 B
TypeScript

/// <reference path='fourslash.ts'/>
////function Foo() {
//// var x;
//// switch (x) {
//// {| "indentation": 8 |}
//// }
//// {| "indentation": 4 |}
//// switch (x) {
//// {| "indentation": 8 |}
//// case 1:
//// {| "indentation": 12 |}
//// break;
//// {| "indentation": 12 |} // content of case clauses is always indented relatively to case clause
//// }
//// {| "indentation": 4 |}
////}
test.markers().forEach((marker) => {
verify.indentationAtPositionIs(marker.fileName, marker.position, marker.data.indentation);
});