Commit Graph
50 Commits
Author SHA1 Message Date
Jb Evain 72989552f4 Add test for bug #644242 2011-06-10 11:49:19 +02:00
Atsushi Eno 4c5ed5697c XStreamingElement should be covered in WriteTo(). It's not derived from XNode. 2011-03-26 19:26:14 +09:00
Atsushi Eno c410acbb5b Fixed bug #666872; XElement.Changed and .Changing were not triggered.
Patch almost by Cambell Prince.
2011-01-31 12:09:06 +09:00
Atsushi Eno 090b3d89ab Fix incorrect internal node cleanup in MoveToRoot(). Fixed bug #654433. 2010-12-22 02:08:58 +09:00
Atsushi Eno 9cc9294607 Add tests from XPathNavigatorEvaluateTests. 2010-12-22 01:39:23 +09:00
Atsushi Eno a76bbbe698 Add another bunch of tests from XPathNavigatorTests. 2010-12-22 01:29:52 +09:00
Atsushi Eno e41225ef4c Several fixes in XNodeNavigator to pass XPath tests from System.Xml. 2010-12-22 00:41:09 +09:00
Atsushi Eno 1a5e666592 Support attribute validation. 2010-11-30 00:10:36 +09:00
Atsushi Eno 487f4c0518 Implemented XDocument.Validate(). 2010-11-29 21:39:16 +09:00
Atsushi Eno 7d8ea89149 2010-05-28 Atsushi Enomoto <[email protected]>
* System.Xml.Linq_test.dll.sources :
	  add System.Xml.Schema/ExtensionsTest.cs.

	* ExtensionsTest.cs :
	  New tests (not working yet), by Stefan Prutianu.


svn path=/trunk/mcs/; revision=158106
2010-05-28 11:43:33 +00:00
Jonathan Pobst 544f0c3cc1 2010-04-23 Jonathan Pobst <[email protected]>
* XAttributeTest.cs, XElementTest.cs: Try to standardize DST usage
	to fix failing tests in buildbot.

svn path=/trunk/mcs/; revision=156031
2010-04-23 19:57:40 +00:00
Atsushi Eno 7a4779f90d 2010-04-21 Atsushi Enomoto <[email protected]>
* XDocument.cs : don't prohibit DTD.
	* XNodeNavigator.cs : do not return true in MoveToFirstChild()
	  when there is no child node. Fixed bug #594877.

	* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
	  tests that were commented out.


svn path=/trunk/mcs/; revision=155854
2010-04-21 08:41:54 +00:00
Atsushi Eno ab4534658e 2010-04-02 Atsushi Enomoto <[email protected]>
* XContainer.cs : create snapshot copy first before removal of nodes.
	  Fixed bug #592435.

	* XElementTest.cs : added test for bug #592435.


svn path=/trunk/mcs/; revision=154729
2010-04-02 15:57:48 +00:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno de51c1e266 2010-01-15 Atsushi Enomoto <[email protected]>
* XElementTest.cs, XAttributeTest.cs : add another set of extensive
	  tests by Tiaan Geldenhuys.


svn path=/trunk/mcs/; revision=149620
2010-01-15 10:55:42 +00:00
Atsushi Eno f9e73d5d8a 2010-01-12 Atsushi Enomoto <[email protected]>
* XElementTest.cs : add extensive tests by Tiaan Geldenhuys, with
	  one sort of comment-out as stated in r149388.


svn path=/trunk/mcs/; revision=149392
2010-01-12 09:53:15 +00:00
Atsushi Eno c35a0e8bdd 2009-11-17 Atsushi Enomoto <[email protected]>
* XContainer.cs : when replacing nodes, add contents first and then
	  remove them, so that the arguments are first unlinked and then
	  no node ends up to be added. Fixed bug #541098.

	* XElementTest.cs : added test for bug #541098.


svn path=/trunk/mcs/; revision=146348
2009-11-17 13:41:30 +00:00
Atsushi Eno c0cd089348 2009-09-15 Atsushi Enomoto <[email protected]>
* XDocument.cs : XmlReaderSettings on XmlReader may be null.
	  Fixed bug #496285.

	* XDocumentTest.cs : added test for bug #496285.


svn path=/trunk/mcs/; revision=141961
2009-09-15 13:03:54 +00:00
Atsushi Eno 362207db51 2009-09-15 Atsushi Enomoto <[email protected]>
* XElement.cs : consider default namespace in GetNamespaceOfPrefix().
	* XNodeReader.cs : 3.5 RTM does not return empty string for undefined
	  namespace URI with the argument prefix in LookupNamespace().

	* XNodeReaderTest.cs : Updated test to match the latest linq2xml
	  and added test for LookupNamespace().


svn path=/trunk/mcs/; revision=141940
2009-09-15 11:16:18 +00:00
Atsushi Eno 0c1d661a61 2009-09-15 Atsushi Enomoto <[email protected]>
* XObject.cs : do not throw AE when target object is not found in
	  Annotation(). Fixed bug #527887.

	* XObjectTest.cs : added test for #527887.


svn path=/trunk/mcs/; revision=141939
2009-09-15 11:12:49 +00:00
Atsushi Eno 54d1220134 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not possibly return null as the Prefix value.
	  Fixed bug #524084.

	* XNodeReaderTest.cs : test Prefix on default namespace.


svn path=/trunk/mcs/; revision=138356
2009-07-22 06:23:35 +00:00
Atsushi Eno 7fed85ca45 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : a couple of properties did not return correct
	  value for EOF state.

	* XNodeReaderTest.cs : test member behaviors at EOF state.


svn path=/trunk/mcs/; revision=138354
2009-07-22 06:13:07 +00:00
Atsushi Eno ab1fa42c8f 2009-07-21 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : do not return element's IsEmpty on attributes.

	* XNodeReaderTest.cs : on attributes IsEmptyElement is false.


svn path=/trunk/mcs/; revision=138352
2009-07-22 06:02:13 +00:00
Jb Evain 5d0adb948f 2009-05-07 Jb Evain <[email protected]>
* XElementTest.cs: add test for bug #501589.


svn path=/trunk/mcs/; revision=133711
2009-05-07 07:25:25 +00:00
Jb Evain d45c953776 2009-02-23 Jb Evain <[email protected]>
* XAttributeTest.cs: add test for XAttribute holding DateTimes.


svn path=/trunk/mcs/; revision=127785
2009-02-23 19:18:29 +00:00
Atsushi Eno 5e3fa39585 2009-01-20 Atsushi Enomoto <[email protected]>
* XElement.cs : iterate all attributes and see if there is
	  applicable ns prefix for current element. Fixed bug #466423.

	* XElementTest.cs : added test for bug #466423.


svn path=/trunk/mcs/; revision=123851
2009-01-20 04:50:13 +00:00
Néstor Salceda c9487b82c4 2008-06-12 Nestor Salceda <[email protected]>
* XTextTest.cs: added test for bug #401325.


svn path=/trunk/mcs/; revision=106151
2008-06-18 19:26:13 +00:00
Atsushi Eno 635e39cfe9 2008-05-22 Atsushi Enomoto <[email protected]>
* XUtil.cs : refactoring Clone(). Support XAttribute too.
	* XNode.cs, XElement.cs, XContainer.cs : when adding a node that is
	  already attached to another node, create a clone of it and add it
	  to the tree instead of adding argument node. Fixed bug #392063.
	  in XElement .ctor(XElement), copy attributes too.

	* XElementTest.cs : added test for bug #392063 and some variants.


svn path=/trunk/mcs/; revision=103766
2008-05-22 10:08:31 +00:00
Atsushi Eno c0d2067ae2 2008-05-12 Atsushi Enomoto <[email protected]>
* XNode.cs, XElement.cs, XUtil.cs, XDocument.cs, XContainer.cs:
	  Add[Before|After]Self() now also checks argument node and joins
	  concatenating strings.

	* XElementTest.cs, XDocumentTest.cs : fixed tests; do now allow
	  XDeclaration addition to XElement, while allow it being added
	  to XDocument.
	  Added test for AddAfterSelf() for concatenating string arguments.


svn path=/trunk/mcs/; revision=103008
2008-05-12 15:19:48 +00:00
Atsushi Eno 36b240b36a 2008-05-12 Atsushi Enomoto <[email protected]>
* XNode.cs : fixed AddAfterSelf() to process order of inserted
	  collection correctly (it could have resulted in reverse order).

	* XElement.cs : added AddAfterSelfCollection().


svn path=/trunk/mcs/; revision=102994
2008-05-12 11:11:26 +00:00
Atsushi Eno a333e2b219 2008-05-12 Atsushi Enomoto <[email protected]>
* XContainer.cs, XElement.cs, XNode.cs, XUtil.cs :
	  made several refactoring on handling "content" items in couple of
	  Add*() methods. Attributes should be allowed in XElement.Add(),
	  while they should be rejected in XNode.Add*Self().
	  Similarly, Add() and SetValue() should reject any invalid content
	  items.
	  Add() should also append string content to the last node when the
	  last node is text.

	* XDocumentTest.cs, XElementTest.cs :
	  Added couple of tests for Add() and AddBeforeSelf().


svn path=/trunk/mcs/; revision=102990
2008-05-12 10:16:06 +00:00
Atsushi Eno de6a6f32bd 2008-05-12 Atsushi Enomoto <[email protected]>
* XStreamingElement.cs : couple of fixes:
	  - object[] args are params.
	  - Fixed WriteContents(object[],XmlWriter) wrong iteration.
	  - do not write xmldecl when it does not exist (OmitXmlDeclaration).

	* XStreamingElementTest.cs : new test.

	* System.Xml.Linq_test.dll.sources : added XStreamingElementTest.cs.


svn path=/trunk/mcs/; revision=102986
2008-05-12 08:48:54 +00:00
Atsushi Eno 43fda2ee86 2008-04-30 Atsushi Enomoto <[email protected]>
* XElement.cs, XNode.cs : XNode.ReadFrom() should not reuse
	  XElement.Load() which may create wrapper XmlReader.

	* XNodeReaderTest.cs : added CreateReader3().


svn path=/trunk/mcs/; revision=102174
2008-04-30 05:54:04 +00:00
Sasha Kogan 5984e6c10e TARGET_JVM: Add msbuild project files & test scripts.
svn path=/trunk/mcs/; revision=99746
2008-04-03 14:28:08 +00:00
Atsushi Eno 10471fd6bd 2008-02-12 Atsushi Enomoto <[email protected]>
* XElement.cs : Value is rather a value in XPath semantics than
	  the textual xml representation. Fixed bug #360858.

	* XElementTest.cs : added test for Value (bug #360858).


svn path=/trunk/mcs/; revision=95478
2008-02-12 03:27:03 +00:00
Atsushi Eno bfac447709 2008-02-11 Atsushi Enomoto <[email protected]>
* XNodeDocumentOrderComparer.cs : ancestor/descendant comparison was
	  broken for some cases.
	* Extensions.cs : implemented InDocumentOrder<T>().

	* XNodeDocumentOrderComparerTest.cs : added another test for
	  descendant/ancestor comparison.
	* ExtensionsTest.cs : test InDocumentOrder<T>().


svn path=/trunk/mcs/; revision=95447
2008-02-11 16:31:45 +00:00
Atsushi Eno f39fe7befe 2008-02-11 Atsushi Enomoto <[email protected]>
* XNamespace.cs : make Get() and GetName() table-based.

	* XNamespaceTest.cs : test Get() and GetName().


svn path=/trunk/mcs/; revision=95437
2008-02-11 14:20:23 +00:00
Atsushi Eno 47d78a8c10 2008-02-11 Atsushi Enomoto <[email protected]>
* XNodeNavigator.cs : MoveToId() is not supported in this class.
	* XElement.cs : allow DTD by default.

	* XNodeNavigatorTest.cs : test MoveToId() (NotSupportedException,
	  cannot be enabled yet).


svn path=/trunk/mcs/; revision=95430
2008-02-11 11:28:51 +00:00
Atsushi Eno 5b7f59e6a8 2008-02-11 Atsushi Enomoto <[email protected]>
* XNode.cs XElement.cs XObject.cs XDocument.cs XContainer.cs :
	  support LoadOptions.SetLineInfo and LoadOptions.SetBaseUri.

	* XObjectTest.cs : new. Test IXmlLineInfo.


svn path=/trunk/mcs/; revision=95429
2008-02-11 11:01:37 +00:00
Atsushi Eno 25040db25a 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.


svn path=/trunk/mcs/; revision=95427
2008-02-11 08:21:40 +00:00
Miguel de Icaza 9396077ba3 2008-02-11 Miguel de Icaza <[email protected]>
* XAttribute.cs, XElement.cs: typecasting operators that take
	values that can be null (nullable types and string) should not
	throw an exception if the XAttribute is null, but return null instead.

	* Added awesome test suite using awesome C-x ( C-x ) C-x e based
	code generation.


svn path=/trunk/mcs/; revision=95417
2008-02-11 05:59:50 +00:00
Atsushi Eno 8d3ab98726 2008-02-10 Atsushi Enomoto <[email protected]>
* XElement.cs : .ctor(XName,object) was trying to set args as its
	  content, not as its own fields.
	* XNodeWriter.cs : check null ns and replace it with "".
	  Now that IsEmpty is true, set IsEmpty as false explicitly
	  when WriteFullEndElement() is called.

	* ExtensionsTest.cs : disabled Remove() which does not compile now.
	* XNodeWriterTest.cs : added test for Write[Full]EndElement() and
	  XElement.IsEmpty.


svn path=/trunk/mcs/; revision=95377
2008-02-10 14:55:50 +00:00
Miguel de Icaza 42cf6fb1da 2008-02-09 Miguel de Icaza <[email protected]>
* XNamespace.cs: implement.

svn path=/trunk/mcs/; revision=95348
2008-02-10 01:28:19 +00:00
Atsushi Eno 3cfea1f6b9 2008-01-30 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : when it is created from non-document XNode, do
	  not go beyond the source node. Fixed bug #356522 (the third case).

	* XNodeReaderTest.cs : test for bug #356522, the third case.


svn path=/trunk/mcs/; revision=94351
2008-01-30 02:25:41 +00:00
Atsushi Eno 9638f6faae 2008-01-29 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : NodeType should return None at Initial state.
	  Fixed bug #356522.

	* XNodeReaderTest.cs : test get_NodeType() for Initial state.


svn path=/trunk/mcs/; revision=94289
2008-01-29 18:59:00 +00:00
Atsushi Eno ede31a5c01 2008-01-29 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : when created from non-document node, the first
	  call to Read() should not move the node to its first child.

	* XNodeReaderTest.cs : test CreateReader() for non-document XNode.


svn path=/trunk/mcs/; revision=94280
2008-01-29 18:28:31 +00:00
Atsushi Eno d5d27b843b 2008-01-29 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : Probably fixed (reopened) bug #356522.
	  NamespaceURI for "xmlns" attribute was "", which should be
	  http://www.w3.org/2000/xmlns/ (in XAttribute its namespace is "").

	* XNodeReaderTest.cs : test for bug #356522 revised case.


svn path=/trunk/mcs/; revision=94268
2008-01-29 17:06:27 +00:00
Atsushi Eno 88e0a9dec7 2008-01-28 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : Fixed bug #356522. Attribute name retrieval was
	  wrong.

	* XNodeReaderTest.cs : test for bug #356522.


svn path=/trunk/mcs/; revision=94116
2008-01-28 10:41:37 +00:00
Atsushi Eno b51b8ffd4e 2008-01-26 Atsushi Enomoto <[email protected]>
* XNodeReader.cs : fixed GetAttribute() that wrongly resulted in
	  returning "" instead of null. Fixed bug #335975.

	* XNodeReaderTest.cs : test for bug #335975.


svn path=/trunk/mcs/; revision=93981
2008-01-26 10:01:07 +00:00
Atsushi Eno 3f7219e8cf moving XLinq stuff to mcs.
svn path=/trunk/mcs/; revision=90454
2007-11-29 18:34:42 +00:00