Author: atsushi
Date: 2005-03-15 11:48:12 -0500 (Tue, 15 Mar 2005)
New Revision: 41841

Modified:
   trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
   trunk/mcs/class/System.XML/Test/System.Xml/XmlValidatingReaderTests.cs
Log:
2005-03-15  Atsushi Enomoto <[EMAIL PROTECTED]>

        * XmlValidatingReaderTests.cs : Added test for sequential text nodes
          which affects on ExpandEntities.



Modified: trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog        2005-03-15 
16:40:38 UTC (rev 41840)
+++ trunk/mcs/class/System.XML/Test/System.Xml/ChangeLog        2005-03-15 
16:48:12 UTC (rev 41841)
@@ -1,3 +1,8 @@
+2005-03-15  Atsushi Enomoto <[EMAIL PROTECTED]>
+
+       * XmlValidatingReaderTests.cs : Added test for sequential text nodes
+         which affects on ExpandEntities.
+
 2005-03-09  Atsushi Enomoto <[EMAIL PROTECTED]>
 
        * XmlTextReaderTests.cs : added SurrogatePair() based on bug #73513.

Modified: trunk/mcs/class/System.XML/Test/System.Xml/XmlValidatingReaderTests.cs
===================================================================
--- trunk/mcs/class/System.XML/Test/System.Xml/XmlValidatingReaderTests.cs      
2005-03-15 16:40:38 UTC (rev 41840)
+++ trunk/mcs/class/System.XML/Test/System.Xml/XmlValidatingReaderTests.cs      
2005-03-15 16:48:12 UTC (rev 41841)
@@ -796,5 +796,24 @@
                        AssertEquals ("entity string text", dvr.Value);
                        Assert (!dvr.ReadAttributeValue ());
                }
+
+               [Test]
+               public void ResolveEntitySequentialText ()
+               {
+                       string xml = @"<!DOCTYPE doc [
+                               <!ELEMENT doc ANY>
+                               <!ELEMENT foo  ANY>
+                               <!ENTITY ref1 '<![CDATA[cdata]]>test'>
+                               ]>
+                               <doc><foo>&ref1; test </foo></doc>";
+                       string refOut = "<doc><foo><![CDATA[cdata]]>test test 
</foo></doc>";
+
+                       XmlTextReader xtr = new XmlTextReader (xml, 
XmlNodeType.Document, null);
+                       XmlValidatingReader r = new XmlValidatingReader (xtr);
+                       r.Read ();
+                       r.Read ();
+                       r.Read ();
+                       AssertEquals (refOut, r.ReadOuterXml ());
+               }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to