CVS Update: xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests
Aleksander Andrzej Slominski <[email protected]> Mon, 9 Feb 2004 01:31:51 -0500 (EST)
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
aslom 04/02/09 01:31:51
Modified: src/java/tests/org/xmlpull/v1/tests TestMisc.java
Log:
added test to correclty detect that PI targte must come directly after <?
Revision Changes Path
1.22 +8 -3 xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/TestMisc.java
Index: TestMisc.java
===================================================================
RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/TestMisc.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -t -w -r1.21 -r1.22
--- TestMisc.java 12 Jan 2004 16:20:59 -0000 1.21
+++ TestMisc.java 9 Feb 2004 06:31:51 -0000 1.22
@@ -410,6 +410,11 @@
testContentMerging(pp, "<foo><? this is PI ?></foo>", null);
testContentMerging(pp, "<foo>\n<? this is PI ?>\n</foo>", "\n\n");
testContentMerging(pp, "<foo><? this is PI ?>\n</foo>", "\n");
+ try {
+ testContentMerging(pp, "<foo><? this is PI ?>\n</foo>", "\n");
+ fail("expected parser to fail as there is space in PI between <? and target");
+ } catch(org.xmlpull.v1.XmlPullParserException e) {
+ }
}
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Upgrade to 128-bit SSL Security!
http://us.click.yahoo.com/qZ0LdD/yjVHAA/TtwFAA/2U_rlB/TM
---------------------------------------------------------------------~->
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/