diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-11-20 09:15:36 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-11-20 09:15:36 +0300 |
commit | bc56f1060eb2fbb902be076d4ae5454083df5d68 (patch) | |
tree | 3836d7930ca41d89ad2edde32e666619ad6d5173 /mcs/class/System.XML/Test | |
parent | 06c665c5ff699b7535644fbccbcfaec1d121a4a0 (diff) |
backport r146350.
svn path=/branches/mono-2-6/mcs/; revision=146602
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.XPath/XPathEditableNavigatorTests.cs | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog b/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog index 647a72b17eb..ae1094af5b9 100644 --- a/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog +++ b/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog @@ -1,3 +1,7 @@ +2009-11-17 Atsushi Enomoto <atsushi@ximian.com> + + * XPathEditableNavigatorTests.cs : added test for bug #554845. + 2009-07-22 Atsushi Enomoto <atsushi@ximian.com> * XPathNavigatorTests.cs : added test for bug #515136. diff --git a/mcs/class/System.XML/Test/System.Xml.XPath/XPathEditableNavigatorTests.cs b/mcs/class/System.XML/Test/System.Xml.XPath/XPathEditableNavigatorTests.cs index 6b0d0c230ef..8e4d4baf5cb 100644 --- a/mcs/class/System.XML/Test/System.Xml.XPath/XPathEditableNavigatorTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.XPath/XPathEditableNavigatorTests.cs @@ -771,6 +771,15 @@ namespace MonoTests.System.Xml.XPath nodeElement.DeleteSelf (); Assert.AreEqual ("<test><node>z</node></test>", document.OuterXml); } + + [Test] + public void WriteAttributeOnAppendedChild () + { + XmlDocument x = new XmlDocument (); + XmlElement y = x.CreateElement ("test"); + using (XmlWriter w = y.CreateNavigator ().AppendChild ()) + w.WriteAttributeString ("test", "test1"); + } } } |