mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Merge branch 'master' into findAllRefsForImports
This commit is contained in:
6
tests/cases/fourslash/formattingConditionalOperator.ts
Normal file
6
tests/cases/fourslash/formattingConditionalOperator.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////var x=true?1:2
|
||||
format.document();
|
||||
goTo.bof();
|
||||
verify.currentLineContentIs("var x = true ? 1 : 2");;
|
||||
12
tests/cases/fourslash/formattingQMark.ts
Normal file
12
tests/cases/fourslash/formattingQMark.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface A {
|
||||
/////*1*/ foo? ();
|
||||
/////*2*/ foo? <T>();
|
||||
////}
|
||||
|
||||
format.document();
|
||||
goTo.marker("1");
|
||||
verify.currentLineContentIs(" foo?();");
|
||||
goTo.marker("2");
|
||||
verify.currentLineContentIs(" foo?<T>();");
|
||||
@@ -30,4 +30,4 @@ goTo.marker("inNewSignature");
|
||||
verify.currentLineContentIs(" new <T>(a: T);");
|
||||
|
||||
goTo.marker("inOptionalMethodSignature");
|
||||
verify.currentLineContentIs(" op? <T, M>(a: T, b: M);");
|
||||
verify.currentLineContentIs(" op?<T, M>(a: T, b: M);");
|
||||
Reference in New Issue
Block a user