CVS Update: xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests

Aleksander Andrzej Slominski <[email protected]> Mon, 9 Feb 2004 15:15:57 -0500 (EST)
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
aslom       04/02/09 15:15:57

  Modified:    src/java/tests/org/xmlpull/v1/tests TestSerialize.java
  Log:
  updated to make fully XML 1.0 and follow common XML serialization practices
  
  Revision  Changes    Path
  1.8       +2 -1      xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/TestSerialize.java
  
  Index: TestSerialize.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/TestSerialize.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -t -w -r1.7 -r1.8
  --- TestSerialize.java	9 Feb 2004 06:32:49 -0000	1.7
  +++ TestSerialize.java	9 Feb 2004 20:15:57 -0000	1.8
  @@ -242,6 +242,7 @@
           ser.startDocument("UTF-8", null);
           ser.startTag("", "foo");
           s = "test\u0009\t\r\n";
  +        String expectedS = "test\u0009\t\n";
           ser.attribute(null, "att", s);
           ser.text(s);
           
  @@ -263,7 +264,7 @@
           checkParserState(xpp, 1, xpp.START_TAG, "foo", null, false /*empty*/, 1);
           assertEquals(printable(s), printable(xpp.getAttributeValue(null, "att")));
           xpp.next();
  -        checkParserState(xpp, 1, xpp.TEXT, null, s, false, -1);
  +        checkParserState(xpp, 1, xpp.TEXT, null, expectedS, false, -1);
           assertEquals(false, xpp.isWhitespace());
           xpp.next();
           checkParserState(xpp, 1, xpp.END_TAG, "foo", null, false, -1);
  
  
  



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/xmlpull-dev/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/