50 Commits
Author SHA1 Message Date
Alexander Köplinger 3d910b7477 [System.XML] Switch tests to use embedded test resources 2018-09-27 22:47:14 +02: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
Atsushi Eno 661430fd1f [xml] XmlDocument.ReadNode() should not special case XmlTextReader.
Added test case that proves this change (by baulig).
2014-11-01 00:06:05 +08:00
Atsushi Eno 976be34045 [xml] XmlTextReader: Value was wrong after ReadAttributeValue() on xml declaration. 2014-10-24 12:20:09 +08:00
Andrés G. Aragoneses 0eb40ad2da Fix very sticky typo in numerous places 2014-01-19 17:51:24 +01:00
Atsushi Eno 7c23f96f71 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:56:16 +09:00
Atsushi Eno 5dc4ecd8e8 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:26:51 +09:00
Andreia Gaita ef80c566af [Xml] Fix GetAttribute to handle null namespaces properly, add unit test. 2010-10-27 19:33:56 +01:00
Atsushi Eno 944d6f7146 2010-06-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : do not try to parse xml:base="".
	  Fixed bug #608391.

2010-06-16  Atsushi Enomoto  <[email protected]>

	* XmlTextReaderTests.cs : added test for bug #608391.


svn path=/trunk/mcs/; revision=159013
2010-06-16 11:24:09 +00:00
Andreia Gaita 88856b11d7 * XmlTextReaderTests.cs: Added ParsingWithNSMgrSubclass test to check
r146175 fix (chained namespace lookups using XmlNamespaceManager
subclasses)

svn path=/trunk/mcs/; revision=146179
2009-11-13 21:26:27 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Atsushi Eno ca5cc074aa 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : cosmetic exception type change. Patch by
	  Hib Eris. Fixed bug #523971.

	* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.


svn path=/trunk/mcs/; revision=138369
2009-07-22 08:38:04 +00:00
Robert Jordan bd7622796a 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=137010
2009-06-26 21:06:21 +00:00
Atsushi Eno 7889d76d13 2008-07-28 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : check null arg.
	* XmlTextReader.cs : fixed bug #412657; now we populate nametable
	  and namespace manager in case they are null in parser context, and
	  use them instead of the members in the parser context.

	* XmlTextReaderTests.cs : added test for bug #412657.


svn path=/trunk/mcs/; revision=109049
2008-07-28 16:40:11 +00:00
Atsushi Eno 0f244de298 2008-06-09 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : when Normalized is true, '<' after \r which
	  comes after text node was incorrectly consumed as a text content.
	  Fixed bug #398374.

	* XmlTextReaderTests.cs : added test for bug #398374.


svn path=/trunk/mcs/; revision=105288
2008-06-09 09:03:08 +00:00
Gert Driesen 0485826abb * XmlTextReaderTests.cs: Enable ProhibitDtd test on 1.0 profile too.
Fixed line endings.
* XmlTextReader.cs: Expose ProhibitDtd on 1.0 profile too.

svn path=/trunk/mcs/; revision=81106
2007-06-30 13:44:53 +00:00
Atsushi Eno 2a6b8ff712 2007-04-03 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : character ']' inside DTD comment caused parser
	  error. Fixed bug #81294.

	* XmlTextReaderTests.cs : added test for bug #81294.


svn path=/trunk/mcs/; revision=75325
2007-04-03 07:41:06 +00:00
Miguel de Icaza 42d559fdb7 word polution removal
svn path=/trunk/mcs/; revision=70514
2007-01-04 23:25:01 +00:00
Atsushi Eno 9c2cf5d9e0 2006-12-19 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : Fixed ReadChars() to consume child elements,
	  including such cases that it breaks tags in the middle of multiple
	  ReadChars() calls.

	* XmlTextReaderTests.cs : added test for bug #80308.


svn path=/trunk/mcs/; revision=69713
2006-12-19 07:44:46 +00:00
Atsushi Eno bf12cc0a6d 2006-10-27 Atsushi Enomoto <[email protected]>
* DTDReader.cs : some parameter entity expansions were not done.
	  Fixed bug #79683.

	* 79683.dtd : added for bug #79683.

	* XmlTextReaderTests.cs : added bug #79683 case.

	* Makefile : added 79683.dtd to dist file.


svn path=/trunk/mcs/; revision=67025
2006-10-27 13:14:25 +00:00
Atsushi Eno beae7faea1 2006-08-14 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When a whitespace node comes after a text 
	  declaration in XML external entity (i.e. .ctor() with
	  XmlNodeType.Element), it contained extra value character ('<').

	* XmlTextReaderTests.cs : added test for whitespace node value which
	  comes after a text declaration in XML external entity (i.e. .ctor()
	  with XmlNodeType.Element).


svn path=/trunk/mcs/; revision=63726
2006-08-14 15:54:23 +00:00
Atsushi Eno dd7de66cdd 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : When "Significant" is assigned to
	  WhitespaceHandling, it should ignore non-significant whitespaces.

	* XmlTextReaderTests.cs : added WhitespaceHandling tests.


svn path=/trunk/mcs/; revision=56845
2006-02-14 04:34:43 +00:00
Atsushi Eno fee29e205c 2005-12-09 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs :
	  Added Encoding property on NonBlockingStreamReader
	* XmlTextReader.cs :
	  set Encoding property when it proceeds to xml declaration.

	* XmlTextReaderTests.cs : added test for Encoding property.


svn path=/trunk/mcs/; revision=54166
2005-12-09 16:37:22 +00:00
Atsushi Eno 21b9253d8b 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, DTDValidatingReader.cs : LookupNamespace("") for
	  default namespace was returning "" instead of null. It didn't check
	  empty namespace URI for non-empty prefixes.

	* XmlTextReaderTests.cs, XmlValidatingReaderTests.cs,
	  XmlReaderCommonTests.cs : added and fixed tests to make sure that
	  LookupNamespace("") returns null for default namespace, and checks
	  that empty namespace URI is not allowed for non-empty prefix.


svn path=/trunk/mcs/; revision=52099
2005-10-23 19:10:47 +00:00
Atsushi Eno 8e2ebd4f21 2005-09-27 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : surrogate computation is incorrect. Fixed bug
	  #76247. Patch by Brion Vibber.

	* XmlTextReaderTests.cs : added test for bug #76247.


svn path=/trunk/mcs/; revision=50870
2005-09-27 15:28:58 +00:00
Atsushi Eno c041318f2c 2005-09-14 Atsushi Enomoto <[email protected]>
in System.Xml:
        * XmlTextReader.cs : when there is a heading half of surrogate
        * at the
          end of read buffer, it didn't treat it as a surrogate.
          Fixed bug #76102.

        in Test/System.Xml:
        * XmlTextReaderTests.cs : added #76102 testcase.

        in Test/XmlFiles:
        * 76102.xml : added test for bug #76102.

        in Test/System.Xml/W3C:
        * Makefile: build fix.


svn path=/trunk/mcs/; revision=50050
2005-09-14 18:18:06 +00:00
Atsushi Eno 7bcda5b08a 2005-06-27 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added a testcase for not-wf entity 
	  declaration which is actually not used in the instance.


svn path=/trunk/mcs/; revision=46581
2005-06-27 18:07:29 +00:00
Atsushi Eno b0c7f07f28 2005-03-09 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs, XmlParserInput.cs, DTDReader.cs: fix UCM-4
	  surrogate calculations. This fixes bug #73513. Patch by
	  Andrew Skiba.

	* XmlTextReaderTests.cs : added SurrogatePair() based on bug #73513.



svn path=/trunk/mcs/; revision=41610
2005-03-09 18:21:10 +00:00
Atsushi Eno 53d8624a86 2004-11-22 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added AttributeNormalizationWrapped().



svn path=/trunk/mcs/; revision=36362
2004-11-22 01:43:57 +00:00
Atsushi Eno 53e4641a96 2004-11-08 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added tests for 2.0 entity handling.
	* XmlValidatingReaderTests.cs : modified tests for entity handling
	  that are changed in 2.0.

svn path=/trunk/mcs/; revision=35813
2004-11-08 06:51:03 +00:00
Atsushi Eno 4513f3ed86 2004-09-07 Atsushi Enomoto <[email protected]>
* XmlReaderSettingsTests.cs : added, including XmlReader.Create() tests
	* XmlTextReaderTests.cs : added normalization and Setting sests.

svn path=/trunk/mcs/; revision=33473
2004-09-07 06:34:56 +00:00
Atsushi Eno 12d11e7889 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlElementTests.cs : added another set_InnerXml test.
	* XmlNodeTests.cs : added BaseURI test.
	* XmlTextReaderTests.cs : added tests for Normalization, EOF,
	  LineNumber, LinePosition (all reported ones).
	* XsdValidatingReaderTests.cs : more descriptions.

svn path=/trunk/mcs/; revision=33434
2004-09-06 17:25:52 +00:00
Atsushi Eno 103be5da58 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added ProhibitDtd().
	* XmlWriterTests.cs : added WriteNodeError().

svn path=/trunk/mcs/; revision=33423
2004-09-06 16:52:07 +00:00
Atsushi Eno 10ba91fbfa 2004-06-06 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added some namespace check tests.

svn path=/trunk/mcs/; revision=28902
2004-06-06 07:36:19 +00:00
Atsushi Eno 261e928b07 2004-05-27 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added test for bug #59142.
	* XmlTextWriterTests.cs : added test for bug #59154.
	* XmlDocumentTests.cs : added test for bug #59155.

svn path=/trunk/mcs/; revision=28238
2004-05-27 09:29:47 +00:00
Atsushi Eno 485add530e 2004-01-14 Atsushi Enomoto <[email protected]>
* XmlAttributeCollectionTests.cs : Added RemoveDefaultAttribute().
	* XmlDocumentTests.cs, XmlElementTests.cs, XmlNodeReaderTests.cs,
	  XmlTextReaderTests.cs, XmlTextWriter.cs, XmlWriterTests.cs :
	  Close or avoid XmlTextReader.

svn path=/trunk/mcs/; revision=22053
2004-01-14 08:02:53 +00:00
Atsushi Eno 5bed43d68c 2004-01-03 Atsushi Enomoto <[email protected]>
* XmlAttributeCollectionTests.cs :
	  added InsertAfterReplacesInCorrectOrder().
	* XmlUrlResolverTests.cs : fixed file path.
	* XmlTextReaderTests.cs : fixed file path.
	* XmlTextWriterTests.cs : added ElementXmlnsNeedEscape().

svn path=/trunk/mcs/; revision=21641
2004-01-03 16:35:04 +00:00
Atsushi Eno 1395cd6eac 2003-11-28 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : Added WriteNodeFullDocument() with
	  encoding specification. Added WriteNodeNonEmptyElement().
	* XmlUrlResolverTests.cs : Added GetEntityWithNonStreamReturnType()
	  and GetEntityWithRelativeFileUri().
	* XmlTextWriterTests.cs : Added some namespace related tests.
	* XmlTextReaderTests.cs : Added char-entity and ReadBase64() tests.
	* XmlNodeTests.cs : GetPrefixOfNamespace() test also for disconnected
	  nodes.
	* XmlElementTests.cs : Added ConstructionAndDefaultAttributes().
	* XmlDeclarationTests.cs : Added InvalidInnerText().
	* XmlAttributeTests.cs : Added CheckPrefixWithNamespace().

svn path=/trunk/mcs/; revision=20590
2003-11-28 16:30:45 +00:00
Atsushi Eno 359f73cf73 2003-09-21 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : Oops, it was CRLF injected ;-)

svn path=/trunk/mcs/; revision=18242
2003-09-21 08:13:02 +00:00
Atsushi Eno 99676a9e1c 2003-09-21 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs : Added ProhibitedMultipleAttributes().
	  Fixed ReadAttributeValue(). Now I think it is MS.NET XmlTextReader
	  which is rather buggy than their XmlNodeReader.
	* XmlTextReaderTests.cs : Added IfNamespacesThenProhibitedAttributes()
	  and trivial messagefix.

svn path=/trunk/mcs/; revision=18241
2003-09-21 08:11:05 +00:00
Atsushi Eno 08158153ce 2003-08-24 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : Added DefaultAttributeRemoval() and
	  EmptyStringHasTextNode().
	* XmlElementTests.cs : Added RemoveDoesNotRemoveDefaultAttributes().
	* XmlReaderCommonTests.cs : Added overroaded AssertNodeValues() and
	  ReadAttributeValue().
	* XmlTextReaderTests.cs :
	  Added NotAllowedCharRef() and ExpandParameterEntity().
	  Also added but ignored tests: UndeclaredEntityInIntSubsetOnlyXml()
	  and UndeclaredEntityInStandaloneXml().
	* XmlValidatingReaderTests.cs : TestAttributeDefaultContribution()
	  refactory.
	* Added XsdParticleValidationTests.cs and XsdValidatingReaderTests.cs.

svn path=/trunk/mcs/; revision=17558
2003-08-24 19:04:01 +00:00
Atsushi Eno f218c0ded5 2003-07-12 Atsushi Enomoto <[email protected]>
* XmlNodeReaderTests.cs : Fixed ReadInnerXmlWrongInit() for correct
	  ReadState check.
	* ChangeLog was incorrectly added about above stuff.
	* XmlTextReaderTests.cs : added some reader's state check tests and
	  ReadAsElementContent and ReadAsAttributeContent.
	* XmlTextWriterTests.cs : added DontOutputMultipleXmlns().

svn path=/trunk/mcs/; revision=16132
2003-07-12 07:44:45 +00:00
Atsushi Eno ccea621d22 2003-06-16 Atsushi Enomoto <[email protected]>
* added XmlCharTests.cs(separated XmlChar tests from XmlTextReaderTests)
	* XmlTextReaderTests.cs : added ExternalDocument() which will result
	  in BaseURI test and DTD parameter entity test.

svn path=/trunk/mcs/; revision=15427
2003-06-15 18:32:40 +00:00
Atsushi Eno df14a8aaf0 2003-05-16 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
	* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
	  and not well-formed xml of OuterXmlWithDefaultXmlns().
	* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
	  WriteToWithDefaultNamespace().
	* XmlNodeReaderTests.cs : fixed incorrect result expectation of
	  ReadInnerXmlWrongInit().
	* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
	* XmlReaderCommonTests.cs,
	  XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
	  InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
	  to resolve these entity references.
	* XmlTextWriterTests.cs : removed English-dependent error message check.
	  fixed incorrect state-check ignorant blocks of WriteAttributes ().
	* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
	  XmlDecl() as MS.NET results in.

svn path=/trunk/mcs/; revision=14610
2003-05-15 19:09:10 +00:00
Martin Willemoes Hansen ba234c2a4a * Tests inherits from Assertion and Assertion. prefixes removed
svn path=/trunk/mcs/; revision=14558
2003-05-13 20:41:56 +00:00
Atsushi Eno 796f1b26d3 2003-04-29 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : added WriteTo.
	* XmlReaderCommonTests.cs,
	  XmlTextReader.cs : fixed ReadInnerXml (check correct position.)
	  Reverted EmptyElementWithStartAndEndTag, EmptyElementWithAttribute,
	  and StartAndEndTagWithAttribute to XmlTextReaderTests.cs (because
	  they requires IsEmptyElement = false, which is always true for
	  XmlNodeReader).

svn path=/trunk/mcs/; revision=14070
2003-04-28 15:42:21 +00:00
Atsushi Eno 83f150d6c5 2003-04-27 Atsushi Enomoto <[email protected]>
* XmlReaderCommonTests.cs,
	  XmlTextReaderTests.cs : Moved many tests to CommonTests.

svn path=/trunk/mcs/; revision=14031
2003-04-26 19:08:34 +00:00
Atsushi Eno 5fb6444ff6 2003-04-13 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs: quick fix to comment out TestExternalDocument.
	* XmlDocumentTests.cs : quick fix to comment out LoadExternalUri and
	  LoadDocumentWithIgnoreSection.

svn path=/trunk/mcs/; revision=13555
2003-04-12 15:16:05 +00:00
Atsushi Eno bef07b2478 2003-04-12 Atsushi Enomoto <[email protected]>
* added this file as a new entry.
	  See ../ChangeLog to find ChangeLog entries before than this day.

svn path=/trunk/mcs/; revision=13549
2003-04-12 13:39:49 +00:00