mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
adding tests for JSX attributes/closing bracket
This commit is contained in:
1 parent
e86f207859
commit
67878c934c
1 file changed
+15
-1
@@ -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