66//// <div className="commentBox" >
77////Hello, World!/*autoformat*/
88/////*indent*/
9- //// </div>
9+ //// </div>/*closingTagAutoformat*/
1010//// )
1111//// }
1212////
1313////function () {
1414//// return <div
1515////className=""/*attrAutoformat*/
1616/////*attrIndent*/
17- //// >/*danglingBraketAutoformat*/
17+ ////id={
18+ ////"abc" + "cde"/*expressionAutoformat*/
19+ /////*expressionIndent*/
20+ //// }
21+ //// >/*danglingBracketAutoformat*/
1822//// </div>
1923//// }
20-
24+ ////
25+ ////let h5 = <h5>
26+ ////<span>/*childJsxElementAutoformat*/
27+ /////*childJsxElementIndent*/
28+ ////<span></span>/*grandchildJsxElementAutoformat*/
29+ ////</span>/*containedClosingTagAutoformat*/
30+ ////</h5>
2131
2232format . document ( ) ;
2333goTo . marker ( "autoformat" ) ;
2434verify . currentLineContentIs ( ' Hello, World!' ) ;
2535goTo . marker ( "indent" ) ;
2636verify . indentationIs ( 12 ) ;
37+ goTo . marker ( "closingTagAutoformat" ) ;
38+ verify . currentLineContentIs ( " </div>" ) ;
2739
2840goTo . marker ( "attrAutoformat" ) ;
29- verify . currentLineContentIs ( ' className=""> ' ) ;
41+ verify . currentLineContentIs ( ' className=""' ) ;
3042goTo . marker ( "attrIndent" ) ;
3143verify . indentationIs ( 8 ) ;
44+ goTo . marker ( "expressionAutoformat" ) ;
45+ verify . currentLineContentIs ( ' "abc" + "cde"' ) ;
46+ goTo . marker ( "expressionIndent" ) ;
47+ verify . indentationIs ( 12 ) ;
48+
49+
3250goTo . marker ( "danglingBracketAutoformat" )
33- verify . currentLineContentIs ( " >" ) ;
51+ // TODO: verify.currentLineContentIs(" >");
52+ verify . currentLineContentIs ( " >" ) ;
53+
54+
55+ goTo . marker ( "childJsxElementAutoformat" ) ;
56+ verify . currentLineContentIs ( " <span>" ) ;
57+ goTo . marker ( "childJsxElementIndent" ) ;
58+ verify . indentationIs ( 8 ) ;
59+ goTo . marker ( "grandchildJsxElementAutoformat" ) ;
60+ verify . currentLineContentIs ( " <span></span>" ) ;
61+ goTo . marker ( "containedClosingTagAutoformat" ) ;
62+ verify . currentLineContentIs ( " </span>" ) ;
0 commit comments