Add JSXText indentation test
This commit is contained in:
parent
f962aba24a
commit
9b9032f8c5
31
tests/cases/fourslash/indentationInJsx3.ts
Normal file
31
tests/cases/fourslash/indentationInJsx3.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
//@Filename: file.tsx
|
||||
////function foo () {
|
||||
//// return (
|
||||
//// <div>
|
||||
////hello
|
||||
////goodbye
|
||||
//// </div>
|
||||
//// )
|
||||
////}
|
||||
|
||||
goTo.position(21);
|
||||
verify.textAtCaretIs("return");
|
||||
goTo.position(38);
|
||||
verify.textAtCaretIs("<div>");
|
||||
goTo.position(44);
|
||||
verify.textAtCaretIs("hello");
|
||||
goTo.position(50);
|
||||
verify.textAtCaretIs("goodbye");
|
||||
|
||||
format.document();
|
||||
|
||||
goTo.position(21);
|
||||
verify.textAtCaretIs("return");
|
||||
goTo.position(38);
|
||||
verify.textAtCaretIs("<div>");
|
||||
goTo.position(56);
|
||||
verify.textAtCaretIs("hello");
|
||||
goTo.position(74);
|
||||
verify.textAtCaretIs("goodbye");
|
Loading…
Reference in a new issue