summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2004-04-02 11:37:39 +0000
committerburaq <buraq@epfl.ch>2004-04-02 11:37:39 +0000
commit8bd0505b31f838b127096fc233ac399b49994612 (patch)
treed83435bc4571bccb295806140f24fa64fd15b7e2 /test
parent2b714fefd1e0d04fd8db74b42d4f4c7823f0e556 (diff)
downloadscala-8bd0505b31f838b127096fc233ac399b49994612.tar.gz
scala-8bd0505b31f838b127096fc233ac399b49994612.tar.bz2
scala-8bd0505b31f838b127096fc233ac399b49994612.zip
refined checking for attributes
Diffstat (limited to 'test')
-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() );
+
+}