76 Commits
Author SHA1 Message Date
Alexander Köplinger 5ef930b5f8 [bcl] Build some assemblies with -warnaserror (#5295)
* [bcl] Build some assemblies with -warnaserror

This ensures that we keep the build warning free.

We'll only opt-in a few assemblies that already have zero warnings.
We also only apply this when using csc as mcs might raise different warnings.

For now just opt-in assemblies in the net_4_x profile.
2017-11-24 14:05:39 +01:00
Alexander Köplinger d61e7aca9a [bcl] Update tests that failed when .cs file contained CRLF
Most of them used multiline C# string literals which
means they contained the line ending character of the file.
Updated to make the tests resilient to having CRLF instead of LF.

Some of the mcs tests used a checksum to compare files,
ensured those are checked out using LF.
2017-01-28 02:25:55 +01:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Atsushi Eno 4990b4c47b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marek Safar 9215ddf7ad Make XmlWriterSettingsTests .net compatible 2012-06-06 14:52:01 +01:00
Marek Safar 7b3f562eab A fix for failing xml writer tests 2012-05-31 11:25:24 +01:00
Atsushi Eno fe6e513cf7 Revert previous XPath fix. Fix is rather needed in XPathNodeIterator.GetEnumerator().
The thing is, XPathNodeIterator itself is stateful and does not behave
like IEnumerable, thus GetEnumerator() should not iterate nodes within
*itself*. Rather, it should have returned a clone of it.

After all we didn't have to damage performance to fix bug #3705, which is nice.
2012-03-08 18:11:30 +09:00
Atsushi Eno b88e6a3206 Reuse of XPathNavigator instance is error-prone. Fixed bug #3705. This may significantly harm performance though... 2012-03-08 17:32:16 +09:00
Atsushi Eno e642e68ad8 Fix bug #1558 - return editable XPathNavigator from editable navigator's CreateNavigator(). 2012-01-19 20:01:04 +09:00
David Eisner 2c59464850 Removal of XPath debugging code relating to bug #497017, leaving the new test cases 2011-07-21 23:29:21 +01:00
David Eisner 1bcf143d6a XPath test cases and debugging code relating to bug #497017 2011-07-21 23:20:13 +01:00
Atsushi Eno c838b12b2e Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:01:27 +09:00
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 be335acb42 another dos2unix.
svn path=/trunk/mcs/; revision=136917
2009-06-26 02:15:22 +00:00
Atsushi Eno a74f0aa1a6 dos2unix.
svn path=/trunk/mcs/; revision=136916
2009-06-26 01:44:37 +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
Arina Itkes f456c153f7 dos2unix was applied
svn path=/trunk/mcs/; revision=95435
2008-02-11 13:45:49 +00:00
Konstantin Triger 1532e9daba prevent endless recursion in AncestorIterator while collecting results
svn path=/trunk/mcs/; revision=95369
2008-02-10 12:27:49 +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 847cc799bd then eol-style=native.
svn path=/trunk/mcs/; revision=59289
2006-04-10 09:54:20 +00:00
Atsushi Eno 0872238bff eol-style:CRLF first (then, native).
svn path=/trunk/mcs/; revision=59288
2006-04-10 09:53:32 +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 1d1f53e9b4 2006-03-02 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : seems like there is XmlSchemaExternal.Schema property
	  that is filled after Compile(). Fixed bug #77687.

	* XmlSchemaTests.cs : added test for bug #77687.

	* 77687.xsd, 77687inc.xsd : test for bug #77687.


svn path=/trunk/mcs/; revision=57495
2006-03-02 03:15:05 +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