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-11-16 11:38:13 +0300
committerAtsushi Eno <atsushieno@gmail.com>2009-11-16 11:38:13 +0300
commita53c72f671fd20edd56f87a7b4a0399d53b05b92 (patch)
tree61fb03062c9b7b828fc7d2e413a3a10fe0d2373d /mcs/class/System.XML/Test
parent277019c06cb90be5dc95ccc2f81232bc40487065 (diff)
backport r145910.
svn path=/branches/mono-2-6/mcs/; revision=146242
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r--mcs/class/System.XML/Test/System.Xml/ChangeLog4
-rw-r--r--mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs12
2 files changed, 16 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml/ChangeLog b/mcs/class/System.XML/Test/System.Xml/ChangeLog
index 5c1b971c10e..0ea8c18abfe 100644
--- a/mcs/class/System.XML/Test/System.Xml/ChangeLog
+++ b/mcs/class/System.XML/Test/System.Xml/ChangeLog
@@ -4,6 +4,10 @@
r146175 fix (chained namespace lookups using XmlNamespaceManager
subclasses)
+2009-11-11 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlNodeReaderTests.cs : added test for bug #550379.
+
2009-09-15 Atsushi Enomoto <atsushi@ximian.com>
* XmlAttributeCollectionTests.cs : add test for bug #508296 by
diff --git a/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs b/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs
index 9f76a4c422d..8c16d5360d3 100644
--- a/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml/XmlNodeReaderTests.cs
@@ -192,6 +192,18 @@ namespace MonoTests.System.Xml
Assert.AreEqual (false, nr.IsEmptyElement, "#2.2");
Assert.IsTrue (!nr.Read (), "#3");
}
+
+ [Test] // bug #550379
+ public void MoveToNextAttributeFromValue ()
+ {
+ document.LoadXml ("<ul test='xxx'></ul>");
+ XmlNodeReader nr = new XmlNodeReader (document);
+ nr.Read ();
+ nr.Read ();
+ Assert.IsTrue (nr.MoveToFirstAttribute (), "#1");
+ Assert.IsTrue (nr.ReadAttributeValue (), "#2");
+ Assert.IsFalse (nr.MoveToNextAttribute (), "#3");
+ }
}
}