Commit Graph
54 Commits
Author SHA1 Message Date
Atsushi Eno 19a42d7b26 2009-11-17 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : WriteAttributeString() is allowed on
	  an appended child on .NET, though IMHO incorrectly.
	  Fixed bug #554845.

	* XPathEditableNavigatorTests.cs : added test for bug #554845.


svn path=/trunk/mcs/; revision=146350
2009-11-17 14:39:33 +00:00
Atsushi Eno 60d5aeb3f8 2009-07-22 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : name test did not handle String.Empty cases
	  for name and ns (i.e. no filter). Fixed bug #515136.

	* XPathNavigatorTests.cs : added test for bug #515136.


svn path=/trunk/mcs/; revision=138384
2009-07-22 11:05:00 +00:00
Raja R Harinath b10bc254b9 * XPathNavigatorTests.cs (XPathDocumentMoveToId) [!NET_2_0]: Fix compile.
svn path=/trunk/mcs/; revision=137152
2009-06-30 15:15:39 +00:00
Atsushi Eno bea9bf9dc0 2009-06-26 Atsushi Enomoto <[email protected]>
* SelectNodesTests.cs
	  XPathNavigatorCommonTests.cs
	  XPathAtomicValueTests.cs
	  XPathNavigatorTests.cs
	  XPathNavigatorEvaluateTests.cs : convert to newer nunit style.


svn path=/trunk/mcs/; revision=136928
2009-06-26 05:26:36 +00:00
Atsushi Eno eaf8f77e85 2009-05-15 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : LookupNamespace() in XmlReader from
	  ReadSubtree() should work correctly on text nodes.

	* XPathNavigatorCommonTests.cs : test that LookupNamespace() in
	  XmlReader from ReadSubtree() works correctly on text nodes.


svn path=/trunk/mcs/; revision=134196
2009-05-15 11:14:59 +00:00
Atsushi Eno efb1509fd7 2009-03-17 Atsushi Enomoto <[email protected]>
* Expression.cs : gave up another optimization for bug #443090.

	* SelectNodesTests.cs : added 2nd test for bug #443490.


svn path=/trunk/mcs/; revision=129574
2009-03-17 11:29:32 +00:00
Atsushi Eno c982bb5013 2009-01-20 Atsushi Enomoto <[email protected]>
* Expression.cs : give up sortless iterator optimization.
	  Fixed bug #443490.

	* SelectNodesTests.cs : added test for bug #443490.


svn path=/trunk/mcs/; revision=123871
2009-01-20 11:37:44 +00:00
Atsushi Eno 29dd077cdd 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : in some corner cases an attribute
	  may have null OwnerElement. Fixed bug #458245.

	* SelectNodesTests.cs : added test for bug #458245.


svn path=/trunk/mcs/; revision=123868
2009-01-20 10:46:06 +00:00
Atsushi Eno 0b09797b9f 2008-12-09 Atsushi Enomoto <[email protected]>
* Iterator.cs : DescendantIterator.Clone() was not cloning current
	  node in new code. Fixed bug #456103.

	* XPathNavigatorTests.cs : added test fo bug #456103.


svn path=/trunk/mcs/; revision=121080
2008-12-09 08:12:07 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Atsushi Eno 0e79d8f402 2008-04-02 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : it should not expect ParentNode for
	  OwnerElement. Fixed bug #376210.

	* XPathEditableNavigatorTests.cs : added test for bug #376210.


svn path=/trunk/mcs/; revision=99629
2008-04-02 09:23:41 +00:00
Atsushi Eno bea2f84c76 2008-04-02 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : fixed InnerXml to not give up with root node.
	  Indent InnerXml. Fixed bug #376191.

	* XPathNavigatorTests.cs : added test for bug #376191.


svn path=/trunk/mcs/; revision=99623
2008-04-02 08:23:10 +00:00
Atsushi Eno e874b958bf 2008-03-17 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : allow document fragment as XmlReader
	  input. Fixed bug #324606.

	* XPathNavigatorTests.cs : added test for bug #324606.


svn path=/trunk/mcs/; revision=98446
2008-03-17 09:38:02 +00:00
Atsushi Eno d6fa107ffc 2008-02-27 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : in some MoveTo*() methods, it should allow any
	  destination node when "type" is XPathNodeType.All. Based on the
	  patch by Sanghyeon Seo, fixed bug #365112.

	* XPathNavigatorTests.cs : added test for bug #365112.


svn path=/trunk/mcs/; revision=96753
2008-02-27 11:45:11 +00:00
Atsushi Eno 2ef590022e 2007-11-29 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : implemented ValueAs().

	* XPathNavigatorTests.cs : added ValueAs() test.


svn path=/trunk/mcs/; revision=90443
2007-11-29 17:20:54 +00:00
Atsushi Eno 73355f1845 2007-01-05 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : fixed incorrect namespace node links
	  which happened to following siblings of a node with namespaces.

	* XPathNavigatorCommonTests.cs : added test for incorrect namespace
	  node links.


svn path=/trunk/mcs/; revision=70557
2007-01-05 20:14:32 +00:00
Atsushi Eno 8da0d1e779 2007-01-05 Atsushi Enomoto <[email protected]>
* Expression.cs : text() should match whitespace and significant
	  whitespace nodes.

	* XPathNavigatorTests.cs : added test for text() and whitespace/
	  significantwhitespace node.


svn path=/trunk/mcs/; revision=70536
2007-01-05 16:20:04 +00:00
Atsushi Eno d595cb3fbd 2006-12-05 Atsushi Enomoto <[email protected]>
* XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
	  final attribute in an element.

	* XPathNavigatorReaderTests.cs : added test for MoveToAttribute(int).


svn path=/trunk/mcs/; revision=69026
2006-12-05 11:12:02 +00:00
Atsushi Eno 23638c8d3c 2006-12-05 Atsushi Enomoto <[email protected]>
* XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
	  ancestors' namespaces.

	* XPathEditableDocument.cs : those writers should lookup prefix when
	  WriteStartElement/WriteStartAttribute are passed null prefix.
	  Removed nodeStack in XmlDocumentInsertionWriter, since nodes are
	  always added to current node immediately.

	* XmlNodeTests.cs : added another test for GetPrefixOfNamespace().

	* XPathNavigatorTests.cs : added test for XPath navigator editor's
	  LookupPrefix().


svn path=/trunk/mcs/; revision=69021
2006-12-05 10:07:29 +00:00
Atsushi Eno 25fc3e1f3b 2006-11-10 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs :
	  - ReadSubtree() should reject everything but Element or Root.
	  - InnerXml and OuterXml should not use ReadSubtree() when it is
	    not positioned on an Element or the Root. Thus, implement them
	    in their own ways. Fixed bug #79875.

	* XPathNavigatorTests.cs : added test for bug #79875, and some
	  "escaped" text tests for InnerXml.
	* XPathNavigatorReaderTests.cs : make sure that most of XPath nodes
	  are rejected to read subtree.


svn path=/trunk/mcs/; revision=67659
2006-11-10 01:39:23 +00:00
Atsushi Eno e19092967f 2006-11-10 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : InnerXml should allow Text-only content. Fixed
	  bug #79874, when tied to XPathNavigatorReader fix.

	* XPathNavigatorReader.cs : removed node type restriction on 
	  initialization.  Fixed bug #79874, when tied to XPathNavigator fix.

	* XPathNavigatorTests.cs : added test for bug #79874.


svn path=/trunk/mcs/; revision=67653
2006-11-10 00:08:43 +00:00
Atsushi Eno 5d5594ef4b 2006-10-27 Atsushi Enomoto <[email protected]>
* XsltContext.cs : finally created a non-copyright-infringing test
	  for bug #46751 and fixed it.

	* XPathNavigatorTests.cs : added (kind of) test for bug #46751.


svn path=/trunk/mcs/; revision=67045
2006-10-27 20:51:56 +00:00
Atsushi Eno 9318cf2b6a 2006-10-11 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : (XmlDocumentEditableNavigator)
	  implement CanEdit to return true.

	* XPathEditableNavigatorTests.cs : added test for CanEdit, based on
	  the patch by Konstantin Triger.


svn path=/trunk/mcs/; revision=66516
2006-10-10 14:59:48 +00:00
Atsushi Eno e4d7bf710d 2006-09-11 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : DocumentFragment should also be allowed
	  to have a child.

	* XPathEditableNavigatorTests.cs : added test fro AppendChild() from
	  a document fragment.


svn path=/trunk/mcs/; revision=65219
2006-09-11 11:02:03 +00:00
Atsushi Eno cde8954e44 2006-09-01 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : MoveToFirstAttribute() should return
	  true when current node is an attribute (including namespace node).

	* XPathNavigatorReaderTests.cs : added test for MoveToFirstAttribute()
	  which is called from several current nodes.


svn path=/trunk/mcs/; revision=64720
2006-09-01 16:31:06 +00:00
Atsushi Eno 5679719f0d 2006-04-10 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : there were some evil CRLF LF mix.


svn path=/trunk/mcs/; revision=59287
2006-04-10 09:52:02 +00:00
Atsushi Eno 5bcb1c6d8d 2006-04-10 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : added test for bug #78067.
	* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.

	* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
	  It caused bug #78067.

	* XPathNavigator.cs : get_OuterXml() returns indented output, without
	  XML declaration.

	* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
	  and root nodes instead of dispatching to ReadSubtree().


svn path=/trunk/mcs/; revision=59286
2006-04-10 09:37:41 +00:00
Atsushi Eno 0afa9b22d7 2005-12-14 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : Added MonoTODO to CreateAttributes(). Removed
	  MonoTODO from ReadSubtree().

	* XPathNavigatorReaderTests.cs : Actually AttributesAndNamespaces()
	  does not work under MS.NET.


svn path=/trunk/mcs/; revision=54366
2005-12-14 16:09:45 +00:00
Atsushi Eno d4caf7151f 2005-12-14 Atsushi Enomoto <[email protected]>
* XPathNavigatorReader.cs : several fixes.
	  - Unless ReadState is Interactive, all name stuff should return "". 
	  - Refactored Read() to work fine when input navigator is Root.
	  - Fixed all MoveTo*Attribute() methods match with other XmlReaders.
	  - Namespace nodes were not handled fine in MoveTo*Attribute().

	* XPathNavigatorReaderTests.cs : new file for testing ReadSubtree()
	  and all dependent members.

	* System.Xml_test.dll.sources: Added XPathNavigatorReaderTests.cs.


svn path=/trunk/mcs/; revision=54364
2005-12-14 15:59:23 +00:00
Atsushi Eno 229263cfc1 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : Reimplemented MoveToFollowing() to avoid
	  inefficient MoveToDescendant() and to match .NET 2.0 behavior.

	* XPathEditableNavigatorTests.cs : added tests for MoveToFollowing().


svn path=/trunk/mcs/; revision=54296
2005-12-13 15:18:30 +00:00
Atsushi Eno 9af8eedec3 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : ReplaceSelf() should allow document fragment.
	  Moved implementation to XPathEditableDocument.

	* XPathEditableDocument.cs : implement ReplaceSelf() here.

	* System.Xml_test.dll.sources: Added XmlAssert.cs.

	* XmlAssert.cs : new file.

	* XPathEditableNavigatorTests.cs : added tests that passes empty
	  string to editor methods. Added tests for ReplaceSelf().


svn path=/trunk/mcs/; revision=54278
2005-12-13 12:09:02 +00:00
Atsushi Eno d3f0d5ba28 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : PrependChild() should use AppendChild() when
	  there is no child.

	* XPathEditableNavigatorTests.cs : added tests for PrependChild().


svn path=/trunk/mcs/; revision=54277
2005-12-13 11:19:46 +00:00
Atsushi Eno aba5cde6e5 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs :
	  - Now it does not append "written" nodes until Close() is invoked.
	  - Use XmlDocumentFragment to store incomplete tree fragment.
	  - Implemented DeleteRange() and ReplaceRange().
	  - Added "Closed" event for ReplaceRange() to "not remove until
	    Close() is called."

	* XPathNavigator.cs : InsertAfter() should raise an error before
	  MoveToNext() when current node is either attribute or namespace.

	* XPathEditableNavigatorTests.cs :
	  Added more tests for InsertAfter() and InsertBefore().
	  Added tests for DeleteRange() and ReplaceRange().


svn path=/trunk/mcs/; revision=54276
2005-12-13 10:46:25 +00:00
Atsushi Eno bf67c4b121 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : InsertAfter() should append children after it
	  once moved to parent. This method shoulr raise an error when it is
	  placed on Root.

	* XPathEditableDocument.cs :
	  - Removed almost all redundant code in XPathEditableDocument,
	    which is based on .net 1.2 XPathDocument functionality.
	  - It was always doing AppendChild even if the operation is
	    InsertBefore or InsertAfter.

	* XPathEditableNavigatorTests.cs : added tests for InsertAfter and
	  InsertBefore.


svn path=/trunk/mcs/; revision=54272
2005-12-13 06:28:00 +00:00
Atsushi Eno 23b916eda1 2005-12-13 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : (CreateFragmentReader) return XmlReader that
	  considers current namespace contexts.

	* XPathEditableNavigatorTests.cs : new file for testing all editor
	  functionality in XPathNavigator.

	* System.Xml_test.dll.sources: Added XPathEditableNavigatorTests.cs.


svn path=/trunk/mcs/; revision=54270
2005-12-13 04:03:36 +00:00
Atsushi Eno 79479e6643 2005-12-12 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : removed some MonoTODOs.

	* XPathNavigatorTests.cs : added tests for ValueAsXxx properties.


svn path=/trunk/mcs/; revision=54233
2005-12-12 12:21:09 +00:00
Atsushi Eno 9a196ea564 2005-10-23 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs, XPathNavigatorTests.cs,
	  XPathNavigatorEvaluateTests.cs :
	  Added assertion labels. Marked some tests as NotDotNet under 2.0.


svn path=/trunk/mcs/; revision=52094
2005-10-23 18:09:20 +00:00
Sebastien Pouliot c0820dfee9 2005-08-31 Sebastien Pouliot <[email protected]>
* XPathExceptionCas.cs: New. CAS unit tests for exception 
	serialization.


svn path=/trunk/mcs/; revision=49174
2005-08-31 12:59:20 +00:00
Atsushi Eno 36b186ae4f 2004-07-23 Atsushi Enomoto <[email protected]>
* Expression.cs : don't expect namespace resolver; namespace could be
	  supplied in QName without nsresolver need (i.e. SelectChildren()).
	  Fixed bug #75609.

	* XPathNavigatorCommonTests.cs : added test for bug #75609


svn path=/trunk/mcs/; revision=47573
2005-07-23 07:00:51 +00:00
Atsushi Eno 95dcc01dc2 2005-02-14 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : new test code was broken.


svn path=/trunk/mcs/; revision=40638
2005-02-14 16:57:04 +00:00
Atsushi Eno 4958d9c1bd 2005-02-14 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : added SignificantWhitespaceConstruction().


svn path=/trunk/mcs/; revision=40636
2005-02-14 16:24:52 +00:00
Atsushi Eno 8d7ab73dde 2004-09-13 Atsushi Enomoto <[email protected]>
* XPathAtomicValueTests.cs : added.

svn path=/trunk/mcs/; revision=33791
2004-09-13 04:05:13 +00:00
Atsushi Eno 0c7bf47bb5 2004-03-31 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : Added PropertiesOnNamespace().

svn path=/trunk/mcs/; revision=24839
2004-03-31 13:01:23 +00:00
Atsushi Eno 8fc32b5ea4 2004-03-24 Atsushi Enomoto <[email protected]>
* SelectNodesTests.cs : Added test for 1) not selecting previously-
	  selected prefixes, and that 2) default namespace erasure (i.e.
	  xmlns="") should not be selected.

svn path=/trunk/mcs/; revision=24530
2004-03-24 18:19:51 +00:00
Atsushi Eno 3056702709 2004-03-16 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : Added test for splitted text.

svn path=/trunk/mcs/; revision=24105
2004-03-16 04:31:20 +00:00
Atsushi Eno e28a66d621 2004-02-17 Atsushi Enomoto <[email protected]>
* XPathNavigatorMatchesTest.cs : commonified some code blocks.
	  Added MatchesAncestorsButNotCurrent(), MatchesParentAxis() and
	  MatchesPredicatedParentAxis().

svn path=/trunk/mcs/; revision=23183
2004-02-17 20:12:16 +00:00
Atsushi Eno 325b8fddcf 2004-01-28 Atsushi Enomoto <[email protected]>
* XPathNavigatorCommonTests.cs : Added MoveToNamespace and IsDescendant.
	* XPathNavigatorTests.cs : Close XmlTextReader.

svn path=/trunk/mcs/; revision=22570
2004-01-28 07:30:59 +00:00
Atsushi Eno 103709e64e 2003-12-18 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : Added XPathDocumentMoveToId().

svn path=/trunk/mcs/; revision=21313
2003-12-18 09:03:37 +00:00
Atsushi Eno ff31037f67 2003-09-26 Atsushi Enomoto <[email protected]>
* XPathNavigatorTests.cs : added SelectFromOrphan().

svn path=/trunk/mcs/; revision=18309
2003-09-26 12:35:05 +00:00
Atsushi Eno 510d67aca1 2003-06-30 Atsushi Enomoto <[email protected]>
* Added XPathNavigatorCommonTests.cs.

svn path=/trunk/mcs/; revision=15787
2003-06-30 19:51:09 +00:00