6
6
//// <div className="commentBox" >
7
7
////Hello, World!/*autoformat*/
8
8
/////*indent*/
9
- //// </div>
9
+ //// </div>/*closingTagAutoformat*/
10
10
//// )
11
11
//// }
12
12
////
13
13
////function () {
14
14
//// return <div
15
15
////className=""/*attrAutoformat*/
16
16
/////*attrIndent*/
17
- //// >/*danglingBraketAutoformat*/
17
+ ////id={
18
+ ////"abc" + "cde"/*expressionAutoformat*/
19
+ /////*expressionIndent*/
20
+ //// }
21
+ //// >/*danglingBracketAutoformat*/
18
22
//// </div>
19
23
//// }
20
-
24
+ ////
25
+ ////let h5 = <h5>
26
+ ////<span>/*childJsxElementAutoformat*/
27
+ /////*childJsxElementIndent*/
28
+ ////<span></span>/*grandchildJsxElementAutoformat*/
29
+ ////</span>/*containedClosingTagAutoformat*/
30
+ ////</h5>
21
31
22
32
format . document ( ) ;
23
33
goTo . marker ( "autoformat" ) ;
24
34
verify . currentLineContentIs ( ' Hello, World!' ) ;
25
35
goTo . marker ( "indent" ) ;
26
36
verify . indentationIs ( 12 ) ;
37
+ goTo . marker ( "closingTagAutoformat" ) ;
38
+ verify . currentLineContentIs ( " </div>" ) ;
27
39
28
40
goTo . marker ( "attrAutoformat" ) ;
29
- verify . currentLineContentIs ( ' className=""> ' ) ;
41
+ verify . currentLineContentIs ( ' className=""' ) ;
30
42
goTo . marker ( "attrIndent" ) ;
31
43
verify . indentationIs ( 8 ) ;
44
+ goTo . marker ( "expressionAutoformat" ) ;
45
+ verify . currentLineContentIs ( ' "abc" + "cde"' ) ;
46
+ goTo . marker ( "expressionIndent" ) ;
47
+ verify . indentationIs ( 12 ) ;
48
+
49
+
32
50
goTo . 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