blob: 284fed0784e772d4f628e0c29e4076fea1ee7212 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import scala.tools.partest.ParserTest
object Test extends ParserTest {
override def code = """
trait X {
// error: in XML literal: name expected, but char '!' cannot start a name
def x = <![CDATA[hi & bye]]> <![CDATA[red & black]]>
}
trait Y {
def y = <a><b/>start<![CDATA[hi & bye]]><c/>world<d/>stuff<![CDATA[red & black]]></a>
}
trait Z {
def d = <![CDATA[hello, world]]>
def e = <![CDATA[hello, world]]><![CDATA[hello, world]]> // top level not coalesced
def f = <foo>x<![CDATA[hello, world]]></foo> // adjoining text
def g = <foo><![CDATA[hello, world]]></foo> // text node when coalescing
def h = <foo><![CDATA[hello, world]]><![CDATA[hello, world]]></foo>
}
"""
// coalescing
override def extraSettings = s"${super.extraSettings} -Xxml:coalescing"
}
|