28 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
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 ce01d27dc2 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : do not forget to clear attributes
	  before Compile(). Patch by Jonas Larsson. Fixed bug #501763.

	* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.


svn path=/trunk/mcs/; revision=133905
2009-05-11 17:12:26 +00:00
Atsushi Eno 42e6fd4373 2008-12-09 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : skip text validation under xs:any.
	  Fixed part of bug #449512.

	* XmlSchemaValidator.cs : skip text validation under xs:any.

	* XmlValidatingReaderTests.cs : added test for validating mixed
	  element under xs:any.


svn path=/trunk/mcs/; revision=121093
2008-12-09 11:19:20 +00:00
Atsushi Eno 82d014295d 2008-04-02 Atsushi Enomoto <[email protected]>
* XsdParticleValidationState.cs : a choice with only empty particle
	  children is emptiable. Fixed bug #376395.

	* XsdValidatingReaderTests.cs : added test for bug #376395.

	* 376395.xml, 376395.xsd : new test files.

	* Makefile : extra distfiles (376395.xml, 376395.xsd).


svn path=/trunk/mcs/; revision=99679
2008-04-02 20:01:31 +00:00
Gert Driesen 22c7e5186c * XmlDocumentTests.cs: Fixed line endings.
* XmlAttributeCollectionTests.cs: Fixed line endings.
* XmlDocumentEventTests.cs: Fixed line endings.
* XmlNodeTests.cs: Fixed line endings.
* XsdValidatingReaderTests.cs: Fixed line endings.
* XmlDocumentTypeTests.cs: Fixed line endings.
* XmlEntityReferenceTests.cs: Fixed line endings.

svn path=/trunk/mcs/; revision=99458
2008-03-31 19:04:17 +00:00
Atsushi Eno b265ee6b99 2007-11-12 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : XmlValueGetter actually needs string value
	  to validate against a restricted simple type (beyond ParseValue()). 
	  Fixed bug #339934.

	* XsdValidatingReaderTests.cs : added test for #339934.

	in Test/System.Xml.Schema/standalone_tests:
	* Makefile : now we try both default and 2.0 profile tests (i.e.
	  "make run-test" and "make PROFILE=net_2_0").
	  For 2.0, use XmlReader.Create().


svn path=/trunk/mcs/; revision=89432
2007-11-12 00:55:56 +00:00
Atsushi Eno 8c2db129dd 2007-10-31 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : r68046 didn't really fix the issue.
	  Enabled the actual fix. and fixed bug #336625.

	* XsdValidatingReaderTests.cs : added test for #336625.

	* 336625.xsd : new test file.

	* Makefile : extra distfiles (336625.xsd).


svn path=/trunk/mcs/; revision=88537
2007-10-31 07:39:02 +00:00
Atsushi Eno b6cbab331e 2007-08-02 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs,
	  XmlSchemaComplexContentRestriction.cs :
	  in Validate(), every descendant item in complexType must be first
	  validated before getting GetOptimizedParticle(), or it could result
	  in wrong content particle. Fixed bug #82010.

	* XsdValidatingReaderTests.cs : test for bug #82010.

	* 82010.xsd, 82010.xml : new test files.

	* Makefile : extra distfiles (82010.xml/.xsd).


svn path=/trunk/mcs/; revision=83272
2007-08-02 09:21:06 +00:00
Atsushi Eno 2b16027631 2007-08-02 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : another extra whitespace rejection.
	  Fixed another issue reported on bug #82183.

	* XsdValidatingReaderTests.cs : another test posted on bug #82183.


svn path=/trunk/mcs/; revision=83264
2007-08-02 07:10:22 +00:00
Atsushi Eno 5be9aab4de 2007-07-17 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : Process empty and element-only contents
	  differently along with the spec 3.4.4 Element Locally Valid (Complex 
	  Type) 2.3 (and 2.1 respectively). Itchy specification indeed.
	  This demanded not a few internal changes. Fixed bug #82099.

	* XmlSchemaValidator.cs : dependent changes to 
	  XsdParticleValidationState. Changed ValidateWhitespace() to do
	  the same as we do in XsdValidatingReader.

	* XsdValidatingReaderTests.cs : added test for bug #82099.


svn path=/trunk/mcs/; revision=82098
2007-07-17 13:36:31 +00:00
Atsushi Eno e0d67f21ab 2007-04-27 Atsushi Enomoto <[email protected]>
* XmlSchemaValidatingReader.cs : nsResolver field must be initialized.
	  Fixed bug #81460.

	* XsdValidatingReaderTests.cs : added test for bug #81460.


svn path=/trunk/mcs/; revision=76376
2007-04-27 08:50:19 +00:00
Atsushi Eno 0208465123 2007-04-24 Atsushi Enomoto <[email protected]>
* XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
	  XmlSchemaNotation.cs XmlSchemaComplexType.cs
	  XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
	  XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
	  XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
	  avoid incorrect compilation of included schemas, fixed bug #81360.
	  more fix for wrong targetNamespace propagation within current
	  processing model. Replaced ParentIsSchema field with a property.

	* XsdValidatingReaderTests.cs : added test for bug #81360.

	* 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.

	* Makefile : added distfiles.


svn path=/trunk/mcs/; revision=76184
2007-04-24 12:40:40 +00:00
Atsushi Eno db8ef8f478 2006-11-17 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : when ValidationType is None, it does not
	  load external schemas. Fixed bug #79924.

	* XmlReaderSettingsTests.cs : added test for bug #79224; it does not
	  load external schemas when validation mode is none.


svn path=/trunk/mcs/; revision=68046
2006-11-17 03:34:52 +00:00
Atsushi Eno 623b56116c 2006-10-27 Atsushi Enomoto <[email protected]>
* XmlSchemaValidator.cs : it must also be fixed for method signature
	  change.
	* XmlSchemaSimpleTypeRestriction.cs : on .NET 2.0, use 
	  IXmlNamespaceResolver for XmlSchemaValidator.

	* XsdValidatingReaderTests.cs : the previous test raises different
	  exception in 2.0.


svn path=/trunk/mcs/; revision=67032
2006-10-27 16:17:11 +00:00
Atsushi Eno acfc823f15 2006-10-27 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : Fixed bug #79650. Enumeration facet was
	  not validated for attributes. Also, simple type restriction should
	  require namespace manager to resolve QNames.

	* XmlSchemaSimpleTypeRestriction.cs : for facet validation, it should
	  use namespacemanager. Though the change is not perfect, thus I
	  disable this change for now.

	* XmlValidatingReaderTests.cs : added bug #79650 case.

	* 79650.xsd : added test for bug #79650.

	* Makefile : added 79650.xsd to dist file.


svn path=/trunk/mcs/; revision=67031
2006-10-27 15:12:25 +00:00
Atsushi Eno f67469ac41 2006-01-13 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : whitespace nodes should be allowed inside
	  empty or element-only content types. Fixed bug #77241.

	* XsdValidatingReaderTests.cs : test from bug #77241.


svn path=/trunk/mcs/; revision=55523
2006-01-13 17:21:15 +00:00
Atsushi Eno 12b7f166b6 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
	  nodes as target string nodes as well as other text nodes.

	* XsdValidatingReader.cs :
	  Don't use normalized string as input to AssessStringValid(). It 
	  incorrectly invalidates strings against simple types with length-
	  related facets.
	  Now that we don't ignore whitespaces, we need to explicitly allow
	  pure whitespace texts in ElementOnly/Empty model.

	* XmlSchemaSimpleTypeRestriction.cs : maxLength and minLength were
	  likely to be ignored in ValidateNonListValueWithFacets().
	* XmlSchemaValidator.cs : Don't use normalized string value as the
	  input to AssessStringValid().

	* XsdValidatingReaderTests.cs : test for ReadTypeValue() that it
	  does not ignore whitespace nodes, and it does not normalize string
	  incorrectly.


svn path=/trunk/mcs/; revision=55129
2006-01-06 04:47:46 +00:00
Atsushi Eno 2b56366922 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : ReadTypedValue() was not working with
	  non-XmlSchemaDatatype types.

	* XsdValidatingReaderTests.cs : test for ReadTypeValue() with simple
	  type restriction.


svn path=/trunk/mcs/; revision=55127
2006-01-06 03:36:13 +00:00
Atsushi Eno bf5bf0e19f 2005-12-26 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : Fixed the bug that only the last
        * schema
          URL in a schemaLocation was processed. Patch by Vorobiev
Maksim.

        * XsdValidatingReaderTests.cs : test for multi URLs in
          schemaLocation. Test by Vorobiev Maskim.

        * multi-schemaLocation.xml,
          x-net-config-storage-factory-provider-schema.xsd,
          x-net-config-schema.xsd :
          test support files for XsdValidatingReaderTests
          .MultipleSchemaInSchemaLocation() by Vorobiev Maskim.


svn path=/trunk/mcs/; revision=54848
2005-12-26 14:16:44 +00:00
Atsushi Eno 04fad49fe6 2005-09-26 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : Namespace manager was not handled correctly.
	  Now it does the same as XmlTextReader does. Fixed bug #76234.

	* XmlValidatingReaderTests.cs : added test for bug #76234.


svn path=/trunk/mcs/; revision=50782
2005-09-26 16:01:18 +00:00
Atsushi Eno 55ae3b564c 2005-07-28 Atsushi Enomoto <[email protected]>
* XsdValidatingReader.cs : when xsi:schemaLocation could not be
	  resolved, it still does not raise error when corresponding schema
	  already exists.

	* XsdValidatingReaderTests.cs : added test case for duplicating
	  assignment of both Schemas.Add() and xsi:schemaLocation where
	  schemaLocation could not be resolved.


svn path=/trunk/mcs/; revision=47803
2005-07-28 14:01:00 +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 37601e10f9 2004-05-13 Atsushi Enomoto <[email protected]>
* XsdValidatingReaderTests.cs : Ignore TestNamespaceFalse(). It is not
	  kind of thing that should be supported.
	* XmlValidatingReaderTests.cs : commented a bit.

svn path=/trunk/mcs/; revision=27238
2004-05-13 07:26:39 +00:00
Atsushi Eno 229aad73ed 2004-01-28 Atsushi Enomoto <[email protected]>
* XmlDocumentTypeTests.cs : Added IncorrectInternalSubset().
	* XmlNodeTests.cs : Since .NET 1.1 also prohibits multiple document
	  element, removed extraneous test switch for InsertBefore().
	* XsdParticleValidationTests.cs,
	  XsdValidatingReaderTests.cs : These test class names are too
	  ambiguous so just renamed them. (No bug reports are found on them,
	  but should be warned in the meantime.)

svn path=/trunk/mcs/; revision=22568
2004-01-28 07:26:43 +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