mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
adding tests for JSX attributes/closing bracket
This commit is contained in:
@@ -10,10 +10,24 @@
|
||||
//// )
|
||||
////}
|
||||
////
|
||||
////function () {
|
||||
//// return <div
|
||||
////className=""/*attrAutoformat*/
|
||||
/////*attrIndent*/
|
||||
//// >/*danglingBraketAutoformat*/
|
||||
//// </div>
|
||||
////}
|
||||
|
||||
|
||||
format.document();
|
||||
goTo.marker("autoformat");
|
||||
verify.currentLineContentIs(' Hello, World!');
|
||||
goTo.marker("indent");
|
||||
verify.indentationIs(12);
|
||||
verify.indentationIs(12);
|
||||
|
||||
goTo.marker("attrAutoformat");
|
||||
verify.currentLineContentIs(' className="">');
|
||||
goTo.marker("attrIndent");
|
||||
verify.indentationIs(8);
|
||||
goTo.marker("danglingBracketAutoformat")
|
||||
verify.currentLineContentIs(" >");
|
||||
Reference in New Issue
Block a user