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-01-20 14:37:44 +0300
committerAtsushi Eno <atsushieno@gmail.com>2009-01-20 14:37:44 +0300
commitc982bb50138e1867b90384ae543d62b4d456af98 (patch)
tree725c9982d2a0d8cdeee1dbff9ee82850e40d58de /mcs/class/System.XML/Test
parent29dd077cdd6236693bd4df628250ec21ec78ffec (diff)
2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
* Expression.cs : give up sortless iterator optimization. Fixed bug #443490. * SelectNodesTests.cs : added test for bug #443490. svn path=/trunk/mcs/; revision=123871
Diffstat (limited to 'mcs/class/System.XML/Test')
-rw-r--r--mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog4
-rw-r--r--mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs13
2 files changed, 17 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 d00d8eed161..758cd64f503 100644
--- a/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Test/System.Xml.XPath/ChangeLog
@@ -1,5 +1,9 @@
2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
+ * SelectNodesTests.cs : added test for bug #443490.
+
+2009-01-20 Atsushi Enomoto <atsushi@ximian.com>
+
* SelectNodesTests.cs : added test for bug #458245.
2008-12-09 Atsushi Enomoto <atsushi@ximian.com>
diff --git a/mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs b/mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs
index fa88b8a6f09..4f18724db26 100644
--- a/mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs
+++ b/mcs/class/System.XML/Test/System.Xml.XPath/SelectNodesTests.cs
@@ -302,5 +302,18 @@ namespace MonoTests.System.Xml.XPath
XmlNode attr = doc.CreateAttribute ("b");
attr.SelectSingleNode ("//*[@id='foo']");
}
+
+ [Test]
+ public void Bug443490 ()
+ {
+ string xml = "<foo xmlns='urn:foo'><bar><div id='e1'> <div id='e1.1'> <div id='e1.1.1'> <div id='e1.1.1.1'> <div id='e1.1.1.1.1'/> </div> <div id='e1.1.1.2'/> </div> </div> </div></bar></foo>";
+ XmlDocument doc = new XmlDocument ();
+ doc.LoadXml (xml);
+ XmlNamespaceManager ns = new XmlNamespaceManager (doc.NameTable);
+ ns.AddNamespace ("_", "urn:foo");
+ string xpath = "//_:div//_:div//_:div";
+ var nodes = doc.SelectNodes (xpath, ns);
+ AssertEquals (4, nodes.Count);
+ }
}
}