From 9e6bdbf4d80279dcb622a261da0b7794a2732725 Mon Sep 17 00:00:00 2001 From: buraq Date: Thu, 8 Jul 2004 17:06:29 +0000 Subject: fix testcases --- test/files/jvm/xmlstuff.scala | 6 +++--- test/files/xml/lnk.scala | 2 +- test/files/xml/xhtml.scala | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/files/jvm/xmlstuff.scala b/test/files/jvm/xmlstuff.scala index f05548aa96..e68f692bdb 100644 --- a/test/files/jvm/xmlstuff.scala +++ b/test/files/jvm/xmlstuff.scala @@ -141,7 +141,7 @@ object Test with Application { assertEquals( - new NodeSeq(List( parsedxml2 )) \\ "_", + (new NodeSeq { val theSeq = List( parsedxml2 ) }) \\ "_", List( Elem("","bib",e, @@ -192,7 +192,7 @@ object Test with Application { for( val x <- p \ "bar"; val y <- p \ "baz" ) yield { x.attribute("value") + y.attribute("bazValue")+ "!" }, - new NodeSeq(List(Text("38!"),Text("58!"))) + new NodeSeq { val theSeq = List(Text("38!"),Text("58!")) } ); val books = @@ -233,7 +233,7 @@ object Test with Application { // example Console.println( - for( val t @ Blabla <- new NodeSeq( books.child ).asList) + for( val t @ Blabla <- new NodeSeq { val theSeq = books.child }.asList) yield t ); diff --git a/test/files/xml/lnk.scala b/test/files/xml/lnk.scala index 7d4c927efe..d5f0295f9c 100644 --- a/test/files/xml/lnk.scala +++ b/test/files/xml/lnk.scala @@ -15,7 +15,7 @@ object Test { // construct data using constructor (valid) val c = Link( - new AttributeSeq( + AttributeSeq.fromAttrs( Attribute("","target","http://www.scala.org") ), Name(n, scala.xml.Text("hello-link")) diff --git a/test/files/xml/xhtml.scala b/test/files/xml/xhtml.scala index 07cf3a1a74..2e3998732c 100644 --- a/test/files/xml/xhtml.scala +++ b/test/files/xml/xhtml.scala @@ -9,7 +9,7 @@ object Test { def main( argv:Array[String] ) = { val link = A( - new AttributeSeq( + AttributeSeq.fromAttrs( Attribute("","href","http://lampwww.epfl.ch") ), Text("link") @@ -26,7 +26,7 @@ object Test { val page = Html(n, Head(n, Base( - new AttributeSeq( + AttributeSeq.fromAttrs( Attribute("","href","http://here.edu") )), Title(n,Text("a basic xhtml page"))), -- cgit v1.2.3