Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2009-08-21 07:45:06 +0400
committerAtsushi Eno <atsushieno@gmail.com>2009-08-21 07:45:06 +0400
commit6d0574134ddef6056348b8555ae9f42d38db660e (patch)
tree688b9cb0cfd8c8e7e8ac1eb7d93470384f8b46c1 /mcs/class/System.XML/Test
parentf61b24b177fa405883ae42d9201729bbf9aa2d30 (diff)
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs : there still was use of bogus XmlParserContext.NameTable. * XmlTextReaderTests.cs : added test for null nametable in parser context. svn path=/trunk/mcs/; revision=140397
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r--mcs/class/System.XML/Test/System.Xml/ChangeLog5
-rw-r--r--mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs9
2 files changed, 14 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml/ChangeLog b/mcs/class/System.XML/Test/System.Xml/ChangeLog
index 887d228798c..eedef530870 100644
--- a/mcs/class/System.XML/Test/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/Test/System.Xml/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlTextReaderTests.cs : added test for null nametable in parser
+ context.
+
2009-07-22 Atsushi Enomoto <atsushi@ximian.com>
* XmlNamespaceManagerTests.cs : add test for bug #514015.
diff --git a/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs
index f9fee3e12bb..fc868fb373b 100644
--- a/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml/XmlTextReaderTests.cs
@@ -1295,5 +1295,14 @@ namespace MonoTests.System.Xml
xtr.Read ();
}
+ [Test]
+ public void ParserContextNullNameTable ()
+ {
+ string input = "<?xml version='1.0' encoding='UTF-8'?><plist version='1.0'></plist>";
+ XmlParserContext context = new XmlParserContext (null, null, null, XmlSpace.None); // null NameTable
+ XmlTextReader xtr = new XmlTextReader (input, XmlNodeType.Document, context);
+ while (!xtr.EOF)
+ xtr.Read ();
+ }
}
}