@@ -467,6 +467,26 @@ suite('Serialize resource', function() {
467
467
assert . equal ( pretty ( input ) , input ) ;
468
468
} ) ;
469
469
470
+ test ( 'Escaped special char in TextElement' , function ( ) {
471
+ const input = ftl `
472
+ foo = \\{Escaped}
473
+ ` ;
474
+ assert . equal ( pretty ( input ) , input ) ;
475
+ } ) ;
476
+
477
+ test ( 'Escaped special char in StringLiteral' , function ( ) {
478
+ const input = ftl `
479
+ foo = { "Escaped \\" quote" }
480
+ ` ;
481
+ assert . equal ( pretty ( input ) , input ) ;
482
+ } ) ;
483
+
484
+ test ( 'Unicode escape sequence' , function ( ) {
485
+ const input = ftl `
486
+ foo = \\u0065
487
+ ` ;
488
+ assert . equal ( pretty ( input ) , input ) ;
489
+ } ) ;
470
490
} ) ;
471
491
472
492
suite ( 'Serialize expression' , function ( ) {
@@ -614,25 +634,4 @@ suite('Serialize padding around comments', function() {
614
634
assert . equal ( pretty ( input ) , input ) ;
615
635
assert . equal ( pretty ( input ) , input ) ;
616
636
} ) ;
617
-
618
- test ( 'Escaped special char in TextElement' , function ( ) {
619
- const input = ftl `
620
- foo = \\{Escaped}
621
- ` ;
622
- assert . equal ( pretty ( input ) , input ) ;
623
- } ) ;
624
-
625
- test ( 'Escaped special char in StringLiteral' , function ( ) {
626
- const input = ftl `
627
- foo = { "Escaped \\" quote" }
628
- ` ;
629
- assert . equal ( pretty ( input ) , input ) ;
630
- } ) ;
631
-
632
- test ( 'Unicode escape sequence' , function ( ) {
633
- const input = ftl `
634
- foo = \\u0065
635
- ` ;
636
- assert . equal ( pretty ( input ) , input ) ;
637
- } ) ;
638
637
} ) ;
0 commit comments