Author: atsushi
Date: 2008-02-11 03:21:40 -0500 (Mon, 11 Feb 2008)
New Revision: 95427
Added:
trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XNodeNavigatorTest.cs
Modified:
trunk/mcs/class/System.Xml.Linq/ChangeLog
trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/ChangeLog
trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/XNodeNavigator.cs
trunk/mcs/class/System.Xml.Linq/System.Xml.Linq_test.dll.sources
trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/ChangeLog
Log:
2008-02-11 Atsushi Enomoto <[EMAIL PROTECTED]>
* XNodeNavigator.cs : oops, MoveToNext() always returned false.
* XNodeNavigatorTest.cs : new test (but it does not build yet).
* System.Xml.Linq_test.dll.sources : added XNodeNavigatorTest.cs.
Modified: trunk/mcs/class/System.Xml.Linq/ChangeLog
===================================================================
--- trunk/mcs/class/System.Xml.Linq/ChangeLog 2008-02-11 08:03:27 UTC (rev
95426)
+++ trunk/mcs/class/System.Xml.Linq/ChangeLog 2008-02-11 08:21:40 UTC (rev
95427)
@@ -1,3 +1,7 @@
+2008-02-11 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * System.Xml.Linq_test.dll.sources : added XNodeNavigatorTest.cs.
+
2007-12-03 Marek Safar <[EMAIL PROTECTED]>
* Makefile : Fixed 3.5 settings.
Modified: trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/ChangeLog
===================================================================
--- trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/ChangeLog 2008-02-11
08:03:27 UTC (rev 95426)
+++ trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/ChangeLog 2008-02-11
08:21:40 UTC (rev 95427)
@@ -1,3 +1,7 @@
+2008-02-11 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XNodeNavigator.cs : oops, MoveToNext() always returned false.
+
2008-02-11 Miguel de Icaza <[EMAIL PROTECTED]>
* XAttribute.cs, XElement.cs: typecasting operators that take
Modified: trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/XNodeNavigator.cs
===================================================================
--- trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/XNodeNavigator.cs
2008-02-11 08:03:27 UTC (rev 95426)
+++ trunk/mcs/class/System.Xml.Linq/System.Xml.Linq/XNodeNavigator.cs
2008-02-11 08:21:40 UTC (rev 95427)
@@ -315,7 +315,7 @@
return false;
node = node.NextNode;
attr = null;
- return false;
+ return true;
}
public override bool MoveToNextAttribute ()
Modified: trunk/mcs/class/System.Xml.Linq/System.Xml.Linq_test.dll.sources
===================================================================
--- trunk/mcs/class/System.Xml.Linq/System.Xml.Linq_test.dll.sources
2008-02-11 08:03:27 UTC (rev 95426)
+++ trunk/mcs/class/System.Xml.Linq/System.Xml.Linq_test.dll.sources
2008-02-11 08:21:40 UTC (rev 95427)
@@ -6,6 +6,7 @@
System.Xml.Linq/XNamespaceTest.cs
System.Xml.Linq/XNodeDocumentOrderComparerTest.cs
System.Xml.Linq/XNodeEqualityComparerTest.cs
+System.Xml.Linq/XNodeNavigatorTest.cs
System.Xml.Linq/XNodeReaderTest.cs
System.Xml.Linq/XNodeWriterTest.cs
System.Xml.Linq/XProcessingInstructionTest.cs
Modified: trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/ChangeLog
===================================================================
--- trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/ChangeLog
2008-02-11 08:03:27 UTC (rev 95426)
+++ trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/ChangeLog
2008-02-11 08:21:40 UTC (rev 95427)
@@ -1,3 +1,7 @@
+2008-02-11 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * XNodeNavigatorTest.cs : new test (but it does not build yet).
+
2008-02-10 Atsushi Enomoto <[EMAIL PROTECTED]>
* ExtensionsTest.cs : disabled Remove() which does not compile now.
Added:
trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XNodeNavigatorTest.cs
===================================================================
--- trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XNodeNavigatorTest.cs
2008-02-11 08:03:27 UTC (rev 95426)
+++ trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XNodeNavigatorTest.cs
2008-02-11 08:21:40 UTC (rev 95427)
@@ -0,0 +1,53 @@
+//
+// Authors:
+// Atsushi Enomoto
+//
+// Copyright 2007 Novell (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.IO;
+using System.Xml;
+using System.Xml.Linq;
+using System.Xml.XPath;
+
+using NUnit.Framework;
+
+namespace MonoTests.System.Xml.Linq
+{
+ [TestFixture]
+ public class XNodeNavigatorTest
+ {
+/* It does not compile probably due to bug #359733.
+ [Test]
+ public void MoveToNext ()
+ {
+ XElement a = new XElement ("root",
+ new XElement ("a"),
+ new XElement ("B"));
+ XPathNavigator nav = a.CreateNavigator ();
+ Assert.IsTrue (nav.MoveToFirstChild (), "#1");
+ Assert.IsTrue (nav.MoveToNext (), "#2");
+ }
+*/
+ }
+}
Property changes on:
trunk/mcs/class/System.Xml.Linq/Test/System.Xml.Linq/XNodeNavigatorTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches