summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/xmlParsing_attr.check2
-rw-r--r--test/files/run/xmlParsing_attr.flags1
-rw-r--r--test/files/run/xmlParsing_attr.scala17
3 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/xmlParsing_attr.check b/test/files/run/xmlParsing_attr.check
new file mode 100644
index 0000000000..9c042b5de2
--- /dev/null
+++ b/test/files/run/xmlParsing_attr.check
@@ -0,0 +1,2 @@
+<testTag value="This is a test." ab="bkla"></testTag>
+<testTag value="42" bla="foo"></testTag>
diff --git a/test/files/run/xmlParsing_attr.flags b/test/files/run/xmlParsing_attr.flags
new file mode 100644
index 0000000000..46526ae80f
--- /dev/null
+++ b/test/files/run/xmlParsing_attr.flags
@@ -0,0 +1 @@
+-Xmarkup \ No newline at end of file
diff --git a/test/files/run/xmlParsing_attr.scala b/test/files/run/xmlParsing_attr.scala
new file mode 100644
index 0000000000..ea2eb60bf6
--- /dev/null
+++ b/test/files/run/xmlParsing_attr.scala
@@ -0,0 +1,17 @@
+import scala.xml._ ;
+
+object Test with Application {
+
+ val testValue = "This is a test.";
+
+ val testValue2 = 42;
+
+ val page = <testTag value={ testValue } ab="bkla" />;
+
+ val page2 = <testTag value={testValue2.toString()} bla="foo"></testTag>;
+
+ Console.println( page.toString() );
+
+ Console.println( page2.toString() );
+
+}