summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorburaq <buraq@epfl.ch>2005-04-11 17:09:24 +0000
committerburaq <buraq@epfl.ch>2005-04-11 17:09:24 +0000
commit5860530cce72afd1387506d67b852a27445f30a2 (patch)
treead3a5061be409b456af67ba4736e82d2f6a5f8c7 /test/files
parent38c5a6b5ca0577347240208c7df0b36e08c05ceb (diff)
downloadscala-5860530cce72afd1387506d67b852a27445f30a2.tar.gz
scala-5860530cce72afd1387506d67b852a27445f30a2.tar.bz2
scala-5860530cce72afd1387506d67b852a27445f30a2.zip
away... moved to different rep
Diffstat (limited to 'test/files')
-rw-r--r--test/files/xml/lnk.check6
-rw-r--r--test/files/xml/lnk.namespace1
-rw-r--r--test/files/xml/lnk.scala51
-rw-r--r--test/files/xml/xhtml.check2
-rw-r--r--test/files/xml/xhtml.namespace1
-rw-r--r--test/files/xml/xhtml.scala40
6 files changed, 0 insertions, 101 deletions
diff --git a/test/files/xml/lnk.check b/test/files/xml/lnk.check
deleted file mode 100644
index c7753fb41d..0000000000
--- a/test/files/xml/lnk.check
+++ /dev/null
@@ -1,6 +0,0 @@
-validator throws exception: element "link" not allowed here
-<ns0:link target="http://www.scala.org" xmlns:ns0="http://scala.epfl.ch/testSuite/links"><ns0:name>hello-link</ns0:name></ns0:link>
-<ns0:lnkDB xmlns:ns0="http://scala.epfl.ch/testSuite/links"><ns0:linkgroup><ns0:groupname>LDAP Links</ns0:groupname><ns0:link target="http://www.openldap.org/doc/"><ns0:name>OpenLDAP Administration Guide</ns0:name><ns0:description>contains very readable section &quot;What is LDAP&quot;</ns0:description></ns0:link><ns0:linkgroup><ns0:groupname>LDAP RFCs</ns0:groupname><ns0:link target="ftp://ftp.isi.edu/in-notes/rfc2251.txt"><ns0:name>RFC2251 Lightweight Directory Access Protocol (v3)</ns0:name></ns0:link><ns0:link target="ftp://ftp.isi.edu/in-notes/rfc2252.txt"><ns0:name>Lightweight Directory Access Protocol (v3):
- Attribute Syntax Definitions</ns0:name></ns0:link><ns0:link target="ftp://ftp.isi.edu/in-notes/rfc2253.txt"><ns0:name>Lightweight Directory Access Protocol (v3):
- UTF-8 String Representation of Distinguished Names
- </ns0:name></ns0:link><ns0:link target="ftp://ftp.isi.edu/in-notes/rfc2254.txt"><ns0:name>The String Representation of LDAP Search Filters</ns0:name></ns0:link></ns0:linkgroup><ns0:linkgroup><ns0:groupname>LDAP and Lotus Notes</ns0:groupname><ns0:link target="http://www.shmoo.com/mail/fw1/jul99/msg00040.html"><ns0:name>LDAP enabled on Notes... to change settings</ns0:name></ns0:link><ns0:link target="http://www.openldap.org/lists/openldap-general/200103/msg00004.html"><ns0:name>Replicating Notes data to OpenLDAP</ns0:name></ns0:link></ns0:linkgroup></ns0:linkgroup></ns0:lnkDB>
diff --git a/test/files/xml/lnk.namespace b/test/files/xml/lnk.namespace
deleted file mode 100644
index 5d787d9564..0000000000
--- a/test/files/xml/lnk.namespace
+++ /dev/null
@@ -1 +0,0 @@
-http://scala.epfl.ch/testSuite/links \ No newline at end of file
diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala
deleted file mode 100644
index d5f0295f9c..0000000000
--- a/test/files/xml/lnk.scala
+++ /dev/null
@@ -1,51 +0,0 @@
-// $Id$
-
-import scala.xml.{Attribute, AttributeSeq, Node};
-import dtd._;
-
-object Test {
-
- // 3 ways to construct your data
- def main(args:Array[String]) = {
-
- val n = Node.NoAttributes ;
- // construct data using original Element name
- //val b: Node = dtd._factory.get("link").match { case Some(x) => x(Nil,null)}; // safe
- // !!! System.out.println(b.toXML);
-
- // construct data using constructor (valid)
- val c = Link(
- AttributeSeq.fromAttrs(
- Attribute("","target","http://www.scala.org")
- ),
- Name(n, scala.xml.Text("hello-link"))
- );
-
- try {
- val c2 = Name(
- n,
- Link( n )
- );
- Console.println("eh ?");
- } catch {
- case scala.xml.dtd.ValidationException(msg) => {
- Console.print("validator throws exception: ");
- Console.println( msg );
- }
- case z => // ignore
- Console.println("whut??? "+z.getClass);
-
- }
-
-
-
-
- //c.getAttribs.update("target", "http://www.scala.org");
- System.out.println( c );
-
- // construct data using loading from a file
- val lnkDB = load(args(0));
- System.out.println( lnkDB );
- }
-
-}
diff --git a/test/files/xml/xhtml.check b/test/files/xml/xhtml.check
deleted file mode 100644
index 42f6f98e0d..0000000000
--- a/test/files/xml/xhtml.check
+++ /dev/null
@@ -1,2 +0,0 @@
-<ns0:html version="-//W3C//DTD XHTML Basic 1.0//EN" xmlns:ns0="http://www.w3.org/1999/xhtml"><ns0:head profile=""><ns0:base href="http://here.edu"></ns0:base><ns0:title>a basic xhtml page</ns0:title></ns0:head><ns0:body><ns0:h1>Welcome to xhtml in scala</ns0:h1><ns0:p>a paragraph</ns0:p><ns0:p>another one, with a <ns0:a href="http://lampwww.epfl.ch">link</ns0:a> to the LAMP homepage.</ns0:p></ns0:body></ns0:html>
-<ns0:html version="-//W3C//DTD XHTML Basic 1.0//EN" xmlns:ns0="http://www.w3.org/1999/xhtml"><ns0:head profile=""><ns0:base href="here.com"></ns0:base><ns0:title>a basic xhtml page</ns0:title></ns0:head><ns0:body><ns0:h1>Welcome to xhtml in scala</ns0:h1><ns0:p>a paragraph</ns0:p><ns0:p>another, with a <ns0:a href="http://lampwww.epfl.ch">example link</ns0:a> to lamp homepage</ns0:p></ns0:body></ns0:html>
diff --git a/test/files/xml/xhtml.namespace b/test/files/xml/xhtml.namespace
deleted file mode 100644
index 4685ae94e0..0000000000
--- a/test/files/xml/xhtml.namespace
+++ /dev/null
@@ -1 +0,0 @@
-http://www.w3.org/1999/xhtml \ No newline at end of file
diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala
deleted file mode 100644
index 2e3998732c..0000000000
--- a/test/files/xml/xhtml.scala
+++ /dev/null
@@ -1,40 +0,0 @@
-// $Id$
-
-import scala.xml.{Attribute, AttributeSeq, Node, Text};
-import dtd._;
-
-object Test {
-
- val n = Node.NoAttributes;
-
- def main( argv:Array[String] ) = {
- val link = A(
- AttributeSeq.fromAttrs(
- Attribute("","href","http://lampwww.epfl.ch")
- ),
- Text("link")
- );
-
- //val m = new scala.collection.mutable.HashMap[String, String];
- //m.put("href","http://lampwww.epfl.ch");
- //link.setAttribs(m);
-
- val body = Body(n,
- H1(n,Text("Welcome to xhtml in scala")),
- P(n,Text( "a paragraph")),
- P(n,Text("another one, with a "),link,Text(" to the LAMP homepage.")));
- val page = Html(n,
- Head(n,
- Base(
- AttributeSeq.fromAttrs(
- Attribute("","href","http://here.edu")
- )),
- Title(n,Text("a basic xhtml page"))),
- body);
- System.out.println( page ) ;
-
- val doc = load(argv(0));
- System.out.println( doc );
- }
-
-}