@@ -307,10 +307,10 @@ class XMLTest {
307
307
@ UnitTest
308
308
def escape =
309
309
assertEquals("""
310
- " Come, come again, whoever you are, come!
310
+ " Come, come again, whoever you are, come!
311
311
Heathen, fire worshipper or idolatrous, come!
312
312
Come even if you broke your penitence a hundred times,
313
- Ours is the portal of hope, come as you are."
313
+ Ours is the portal of hope, come as you are."
314
314
Mevlana Celaleddin Rumi""" , <! [CDATA [
315
315
" Come, come again, whoever you are, come!
316
316
Heathen, fire worshipper or idolatrous, come!
@@ -473,6 +473,22 @@ Ours is the portal of hope, come as you are."
473
473
assertHonorsIterableContract(<a a =" " y ={ null : String }/>.attributes)
474
474
}
475
475
476
+ @ UnitTest
477
+ def t5645 : Unit = {
478
+
479
+ val bar = " baz"
480
+ val script = <script type =" text/javascript" >
481
+ foo(" {bar}" );
482
+ </script >
483
+
484
+ val expected =
485
+ """ |<script type="text/javascript">
486
+ | foo("baz");
487
+ | </script>""" .stripMargin
488
+
489
+ assertEquals(expected, script.toString)
490
+ }
491
+
476
492
@ UnitTest
477
493
def t5843 : Unit = {
478
494
val foo = scala.xml.Attribute (null , " foo" , " 1" , scala.xml.Null )
0 commit comments