summaryrefslogtreecommitdiff
path: root/test/files/jvm
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm')
-rw-r--r--test/files/jvm/xml01.check1
-rw-r--r--test/files/jvm/xml01.scala7
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/jvm/xml01.check b/test/files/jvm/xml01.check
index 2a8d2e5625..cafdd6e2fc 100644
--- a/test/files/jvm/xml01.check
+++ b/test/files/jvm/xml01.check
@@ -28,3 +28,4 @@ passed ok
attribute value normalization
passed ok
passed ok
+passed ok
diff --git a/test/files/jvm/xml01.scala b/test/files/jvm/xml01.scala
index 7de6211e29..1f69e6969a 100644
--- a/test/files/jvm/xml01.scala
+++ b/test/files/jvm/xml01.scala
@@ -220,7 +220,14 @@ object Test {
assertTrue(c == '\u015e');
}
+ // #60 test by round trip
+
+ val p = scala.xml.parsing.ConstructingParser.fromSource(scala.io.Source.fromString("<foo bar:attr='&amp;'/>"),true)
+ val n = p.element(new scala.xml.NamespaceBinding("bar","BAR",scala.xml.TopScope))(0)
+ assertFalse( n.attributes.get("BAR", n, "attr").isEmpty)
+
}
+
}