@@ -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!
@@ -492,6 +492,22 @@ Ours is the portal of hope, come as you are."
492
492
assertTrue(g)
493
493
}
494
494
495
+ @ UnitTest
496
+ def t5645 : Unit = {
497
+
498
+ val bar = " baz"
499
+ val script = <script type =" text/javascript" >
500
+ foo(" {bar}" );
501
+ </script >
502
+
503
+ val expected =
504
+ """ |<script type="text/javascript">
505
+ | foo("baz");
506
+ | </script>""" .stripMargin
507
+
508
+ assertEquals(expected, script.toString)
509
+ }
510
+
495
511
@ UnitTest
496
512
def t5843 : Unit = {
497
513
val foo = scala.xml.Attribute (null , " foo" , " 1" , scala.xml.Null )
0 commit comments