mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
conditionals are now introduce indentation scope
This commit is contained in:
23
tests/cases/fourslash/formattingConditionals.ts
Normal file
23
tests/cases/fourslash/formattingConditionals.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
|
||||
////var v =
|
||||
/////*0*/a === b
|
||||
/////*1*/? c
|
||||
/////*2*/: d;
|
||||
|
||||
////var v = a === b
|
||||
/////*3*/? c
|
||||
/////*4*/: d;
|
||||
|
||||
function verifyLine(marker: string, content: string) {
|
||||
goTo.marker(marker);
|
||||
verify.currentLineContentIs(content);
|
||||
}
|
||||
|
||||
format.document();
|
||||
verifyLine("0", " a === b");
|
||||
verifyLine("1", " ? c");
|
||||
verifyLine("2", " : d;");
|
||||
verifyLine("3", " ? c");
|
||||
verifyLine("4", " : d;");
|
||||
Reference in New Issue
Block a user