Commit Graph
57 Commits
Author SHA1 Message Date
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 8ae9f1becb 2006-08-04 Atsushi Enomoto <[email protected]>
* XsdIdentityState.cs : Fixed bug #78985. If there are two identical
	  field path "@key" in two different keys where one is in scope
	  within another, it incorrectly matched the attribute whose name
	  is same but in different element hierarchy (depth).

	* XmlSchemaTest.cs : added bug #78985 case.

	* 78985.xsd, 78985.xml : test for bug #78985.


svn path=/trunk/mcs/; revision=63338
2006-08-04 06:35:17 +00:00
Atsushi Eno 2b937a1e9b 2006-07-27 Atsushi Enomoto <[email protected]>
* XmlSchema.cs, XmlSchemaSimpleTypeList.cs,
	  XmlSchemaSimpleContentRestriction.cs, XmlSchemaUtil.cs,
	  XmlSchemaSimpleContentExtension.cs, XmlSchemaElement.cs,
	  XmlSchemaComplexType.cs, XmlSchemaSimpleTypeRestriction.cs,
	  XmlSchemaSimpleTypeUnion.cs, XmlSchemaAttribute.cs :
	  Finally fixed bugs around cross-referencing importing schema 
	  components (namely, #77489 and #78220) by resolving referenced
	  components via new internal Find[Element|Attribute|AttributeGroup|
	  SchemaType] methods in XmlSchema.

	* XmlSchemaSetTest.cs : added bug #77489 case.
	* XmlSchemaCollectionTests.cs : removed NotWorking from #77820 case.


svn path=/trunk/mcs/; revision=63042
2006-07-27 15:15:12 +00:00
Atsushi Eno bce6199ee3 2006-07-27 Atsushi Enomoto <[email protected]>
* xsdtest.cs :
	  It has been running some extra instance validation and reporting 
	  errors where a schema is invalid and therefore no instance
	  validation could be done.
	  Now --reportsuccess works fine for tests that should fail (reports
	  "OK" when it successfully failed).


svn path=/trunk/mcs/; revision=63040
2006-07-27 14:40:45 +00:00
Atsushi Eno 97c462eeae 2006-07-27 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs :
	  eliminated call to XmlSchema.CompileSubset(). Now XmlSchemaSet is
	  the only starter of the compilation.
	* XmlSchemaSet.cs : added targetNamespace check.

	* XmlSchemaSetTests.cs : added AddWrongTargetNamespace().


svn path=/trunk/mcs/; revision=63026
2006-07-27 02:58:28 +00:00
Atsushi Eno 5853e3c5ed 2006-07-25 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : mutual schema import was failing because the
	  compiling schema's SourceUri was not enlisted for nest check.

	* XmlSchemaTests.cs : added TestSimpleMutualImport().

	* inter-inc-1.xsd, inter-inc-2.xsd :
	  new test files for TestSimpleMutualImport().


svn path=/trunk/mcs/; revision=62941
2006-07-25 03:19:21 +00:00
Gert Driesen d7cc337ecd * System.Xml_test.dll.sources: Added Test/System.Xml.Serialization/
XmlSchemaCollectionTests.cs.
* XmlSchemaCollectionTests.cs: added test for bug #78220.

svn path=/trunk/mcs/; revision=59970
2006-04-27 12:35:09 +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 f082c47627 2006-03-01 Atsushi Enomoto <[email protected]>
* XmlSchemaAppInfo.cs, XmlSchemaDocumentation.cs : seems like MS
	  implementation fills empty node set for empty xs:appinfo and
	  xs:documentation and waste memory. Fixed bug #77685.

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


svn path=/trunk/mcs/; revision=57481
2006-03-01 19:51:56 +00:00
Gert Driesen 1d51fe5a1b * XmlSchemaAssertion.cs: Set eol-style to native.
* XmlSchemaBuiltInDatatypeTests.cs: Set eol-style to CRLF.
* XmlSchemaCollectionTests.cs: Set eol-style to native. Fixed line
endings.
* XmlSchemaDatatypeTests.cs: Set eol-style to native.
* XmlSchemaExceptionCas.cs: Set eol-style to native.
* XmlSchemaLengthFacetTests.cs: Set eol-style to CRLF.
* XmlSchemaSetTests.cs: Set eol-style to native.
* XmlSchemaTests.cs: Set eol-style to native.
* XmlSchemaTypeTests.cs: Set eol-style to native.>

svn path=/trunk/mcs/; revision=57418
2006-02-28 19:27:46 +00:00
Gert Driesen 181d10350c * XmlSchema.cs: Do not define namespace for zero-length TargetNamespace
and report XmlSchemaException when compiling XmlSchema with
zero-length TargetNamespace. Fixes bug #77391.
* XmlSchemaTests.cs: Added test for writing XmlSchema with
zero-length TargetNamespace. Added test for compiling XmlSchema
with zero-length TargetNamespace. Replaced Console.WriteLine with
AssertEquals.

svn path=/trunk/mcs/; revision=57415
2006-02-28 19:18:36 +00:00
Atsushi Eno 2e7d450b0a 2006-02-06 Atsushi Enomoto <[email protected]>
* XmlSchemaDatatypeTests.cs: (TestAnyType) NotDotNet -> Ignore.


svn path=/trunk/mcs/; revision=56607
2006-02-07 04:05:25 +00:00
Gert Driesen c2adc4f7a5 * XmlSchemaDatatypeTests.cs: Marked TestAnyType NotDotNet on 2.0 profile
instead of marking it NotWorking. No longer derive from Assertion.

svn path=/trunk/mcs/; revision=56597
2006-02-06 21:13:15 +00:00
Atsushi Eno b0d2d5af52 2006-02-01 Atsushi Enomoto <[email protected]>
* BuiltInDatatype.cs : anyURI could be such relative path that
	  contains ':' in the middle. It also affects on relaxng validation.

	* XmlSchemaDatatypeTests.cs : added two more anyURI tests.


svn path=/trunk/mcs/; revision=56373
2006-02-01 06:25:41 +00:00
Atsushi Eno 3e92836661 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : added XmlSchemaTypeTests.cs.

	* XmlSchemaTypeTests.cs : new file. Test for TypeCode.
	* XmlSchemaSetTests.cs : added more tests for Add() and marked one as
	  NotWorking (we need info on how consistent this method is).


svn path=/trunk/mcs/; revision=55309
2006-01-10 17:10:28 +00:00
Atsushi Eno 0ac61156cf 2006-01-10 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources : XmlSchemaDatatypeTests.cs was missing.
	  collected sys.xml.schema lines.

	* XmlSchemaDatatypeTests.cs : oops sys.col.generic is NET_2_0.


svn path=/trunk/mcs/; revision=55291
2006-01-10 12:57:37 +00:00
Atsushi Eno 4231ac16e6 2006-01-10 Atsushi Enomoto <[email protected]>
* XmlAtomicValue.cs : it won't be implemented since there is no way
	  to test it inside sys.xml. Thus remarked MonoTODO.
	* XmlSchemaDatatype.cs : implemented IsDerivedFrom(), which is however
	  mostly useless.

	* XmlSchemaDatatypeTests.cs : added test for 2.0 IsDerivedFrom().


svn path=/trunk/mcs/; revision=55290
2006-01-10 12:54:26 +00:00
Atsushi Eno df9a592c8c 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : Add() rollbacks IsCompiled to false.
	  Global components are not added when Add() is called.

	* XmlSchemaSetTests.cs : added AddRollbackIsCompiled(); Add() changes
	  IsCompiled to false.


svn path=/trunk/mcs/; revision=55151
2006-01-06 15:58:52 +00:00
Atsushi Eno 607ee5bf7b 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : reverted previous fix; it broke inclusions.

	* XmlSchemaSetTests.cs : reverted the patch, thus restore [Ignore].


svn path=/trunk/mcs/; revision=55146
2006-01-06 12:58:41 +00:00
Atsushi Eno fd4622ca84 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs : Add() needs (consistent) namespace duplicate check.

	* XmlSchemaSetTests.cs : re-enabled test for Add() which was
	  inconsistent in beta versions.


svn path=/trunk/mcs/; revision=55145
2006-01-06 12:24:46 +00:00
Atsushi Eno 0b4965171d 2005-12-08 Atsushi Enomoto <[email protected]>
* XmlSchemaSet.cs :
	  Turned out that it also has set_CompilationSettings.
	* XmlSchemaComplexType. : thus CompilationSettings is nullable, we
	  have to check its existence.

	* XmlSchemaSetTests.cs : added set_CompilationSettings tests.


svn path=/trunk/mcs/; revision=54098
2005-12-08 08:15:30 +00:00
Atsushi Eno 99c907944c 2005-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaCompilationSettings.cs

	* XmlReaderSettings.cs : thanks to idiotic MS design,
	  AllowXmlAttributes is turned on by default.

	* XmlSchemaCompilationSettings.cs : new file.
	* XmlSchemaSet.cs : added CompilationSettings property.
	* XmlSchemaComplexType.cs : support for EnableUpaCheck.

	* XmlReaderSettingsTests.cs : (DefaultValue)
	  Added assertion label everywhere.
	* XmlWriterTests.cs : WriteNodeError is broken under MS.NET 2.0 (it
	  should cause an error).

	* XmlSchemaSetTests.cs : added CompilationSettings tests.


svn path=/trunk/mcs/; revision=54094
2005-12-08 06:56:12 +00:00
Atsushi Eno e4febe6ede 2005-12-01 Atsushi Enomoto <[email protected]>
* XmlSchemaSequence.cs : when a subcomponent is not optional
	  (minOccurs!=0) then it should clean previous components up.
	  Really fixed bug #76865.

	* XmlSchemaTests.cs :
	  Additional schema component to finish #76865 test.

	* Makefile : Use MONO_PATH. Remove extraneous make variables.


svn path=/trunk/mcs/; revision=53748
2005-12-01 06:16:29 +00:00
Atsushi Eno 906d303f75 2005-12-01 Atsushi Enomoto <[email protected]>
* XmlSchemaElement.cs : Fixed ambiguity detection logic so that
	  chameleon ##other (xs:any) does not block other "absent"
	  (empty targetNamespace) element. Fixed bug #76865.

	* XmlSchemaTests.cs : added testcase for #76865.


svn path=/trunk/mcs/; revision=53746
2005-12-01 04:46:45 +00:00
Atsushi Eno d7e2e92951 2005-11-07 Atsushi Enomoto <[email protected]>
* XmlValueGetter.cs, XmlSchemaValidator.cs, XmlSchemaException.cs,
	  XmlSchemaAttribute.cs : Updated API to match 2.0 RTM. Most of the
	  changes are related to XmlValueGetter change.

	* XsdValidatingReader.cs, XmlSchemaValidatingReader.cs,
	  XsdIdentityState.cs :
	  Dependent changes caused by XmlValueGetter changes.

	* xsdtest.cs : updated to match 2.0 RTM API.


svn path=/trunk/mcs/; revision=52650
2005-11-07 12:56:29 +00:00
Atsushi Eno 53da95a67d 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : some namespace output strategy seems changed
	  in .NET 2.0 and they still make sense, so just mark them as
	  NotDotNet and NotWorking under 2.0.


svn path=/trunk/mcs/; revision=52096
2005-10-23 18:13:58 +00:00
Atsushi Eno d5feae8969 2005-09-30 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : XmlReader position after Read() is the end of the
	  schema element.

	* XmlSchemaTests.cs : test for reader position after Read().


svn path=/trunk/mcs/; revision=51030
2005-09-30 05:42:17 +00:00
Atsushi Eno 67b95c5770 2005-09-30 Atsushi Enomoto <[email protected]>
* xsdtest.cs : noResolver option.


svn path=/trunk/mcs/; revision=51029
2005-09-30 05:41:51 +00:00
Sebastien Pouliot 3ed59f0e27 2005-08-31 Sebastien Pouliot <[email protected]>
* XmlSchemaExceptionCas.cs: New. CAS unit tests for exception 
	serialization.


svn path=/trunk/mcs/; revision=49175
2005-08-31 13:00:24 +00:00
Ben Maurer 7ee4149d42 more executable bits
svn path=/trunk/mcs/; revision=46568
2005-06-27 16:07:43 +00:00
Ben Maurer 0e8decdb37 remove svn:executable from .cs files
svn path=/trunk/mcs/; revision=46562
2005-06-27 15:51:40 +00:00
Atsushi Eno e84646a50a 2005-06-11 Atsushi Enomoto <[email protected]>
* XmlSchemaCollection.cs, XmlSchemaCollectionEnumerator.cs :
	  GetEnumerator() was not in sync with the internal change to
	  XmlSchemaSet. Fixed bug #75126. Patch by Crestez Leonard.

	* XmlSchemaCollectionTests.cs : added test for #75126.


svn path=/trunk/mcs/; revision=45801
2005-06-11 04:46:00 +00:00
Raja R Harinath 5948e16f26 svn:eol-style=native
svn path=/trunk/mcs/; revision=44323
2005-05-10 09:39:16 +00:00
Andrew Skiba 9e14f3a495 * Makefile : track the timestamp so tar does not run when not needed
* xsdtest.cs : fix the case of the directory name

svn path=/trunk/mcs/; revision=44241
2005-05-09 06:36:01 +00:00
Raja R Harinath 5319634c9b * Makefile (centum_tests): Add Mono.Security and
System.Runtime.Remoting.
* */Makefile: Replace $(RUNTIME) with $(RUNTIME) $(RUNTIME_FLAGS).
* build/config-default.make (RUNTIME): Set to 'false'.
Reported by Ben Maurer.
* build/profiles/basic.make (MCS): Revert changes below.
* build/platforms/linux.make (ILDISASM): Define.
* build/platforms/win32.make (ILDIsASM): Likewise.
* class/Microsoft.VisualBasic/fixup/Makefile (ILDISASM): Remove.
($(the_il)): Create temporary files in profile directory.

svn path=/trunk/mcs/; revision=43545
2005-04-25 13:42:51 +00:00
Atsushi Eno da23068c98 2005-02-28 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : just set NotWorking for trivial comparison tests.

	* XmlReflectionImporterTests.cs : set NotWorking for trivial empty
	  string comparison.

	* MsxslScriptTests.cs,
	  XslTransformTests.cs : set NotWorking for msxsl:script tests (they
	  premise runnable compilers existence which actually might not exist.)


svn path=/trunk/mcs/; revision=41273
2005-02-28 05:13:56 +00:00
Nick Drochak f7399a13a5 2005-01-30 Nick Drochak <[email protected]>
* XmlSchemaTests.cs: Use less strict test. Probably the order of the 
	namespaces is not required to be in any particular order.

svn path=/trunk/mcs/; revision=39793
2005-01-30 13:16:51 +00:00
Atsushi Eno 0c896407d9 2004-01-17 Atsushi Enomoto <[email protected]>
* Makefile : report details.



svn path=/trunk/mcs/; revision=39003
2005-01-17 09:30:08 +00:00
Atsushi Eno fbb0b0cdc3 2005-01-11 Atsushi Enomoto <[email protected]>
* XmlSchema.cs : Write() should handle carefully output
	  namespace/prefix mapping.

	* XmlSchemaTests.cs : added TestWriteNamespaces2 ().



svn path=/trunk/mcs/; revision=38718
2005-01-11 18:31:14 +00:00
Atsushi Eno 103fb0642d 2004-12-15 Atsushi Enomoto <[email protected]>
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
	  instead of XmlValidatingReader.

	* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.

	* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
	  XmlSchemaValidator.ValidateElement().
	  Removed some obsolete overrides.

	* XmlReader.cs :
	  Create() should assure NameTable!=null on creating XmlTextReader.
	  Now use XmlSchemaValidatingReader for all xsd validation.
	* XmlTextReader2.cs :
	  Don't use input reader's Settings. It is null.
	* XmlReaderSettings.cs : added XmlResolver.

	* XmlSchemaSet.cs : set default resolver. Clear components before
	  recompilation.
	* XmlSchemaValidator.cs :
	  SourceUri is System.Uri.
	  GetUnspecifiedDefaultAttributes() is allowed only when it is inside
	  start tag.
	  Added AddSchema().
	  Added duplicate attribute check.
	  Added ValidateElement() that takes xsi:* parameters.
	  (http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
	  HandleXsiNil() now just takes string parameter.



svn path=/trunk/mcs/; revision=37782
2004-12-15 13:58:32 +00:00
Atsushi Eno 7d82fe4207 2004-12-10 Atsushi Enomoto <[email protected]>
* xsdtest.cs : improved significantly. Enabled reporting to file,
	  immediate stop on exception, xml reporting, and so on.
	  Run mono xsdtest.exe --help for details.
	* Makefile : now "make test" becomes "make run-test" and it generates
	  TestResult.xml (of my own format).
	* README : updated info.



svn path=/trunk/mcs/; revision=37548
2004-12-10 05:20:59 +00:00
Atsushi Eno 776425f6be 2004-09-13 Atsushi Enomoto <[email protected]>
* XmlSchemaSetTests.cs : added.

svn path=/trunk/mcs/; revision=33807
2004-09-13 12:54:15 +00:00
Atsushi Eno 814122aadc 2004-05-24 Atsushi Enomoto <[email protected]>
* XmlSchemaBuiltInDataypeTests.cs : 'Z' is not allowed here (maybe it
	  is 'T' that was wanted). More kind error message in Fail().

svn path=/trunk/mcs/; revision=27956
2004-05-24 10:40:09 +00:00
Atsushi Eno 2b323defa8 2004-05-05 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : Added TestWriteNamespaces().

svn path=/trunk/mcs/; revision=26734
2004-05-05 04:25:02 +00:00
Atsushi Eno a361089332 2004-03-31 Atsushi Enomoto <[email protected]>
* Added XmlSchemaAssertion.cs.
	* XmlSchemaTests.cs : now uses XmlSchemaAssertion.

svn path=/trunk/mcs/; revision=24856
2004-03-31 17:38:42 +00:00
Atsushi Eno 9107609cd7 2004-03-04 Atsushi Enomoto <[email protected]>
* Makefile : made "make test" independent of "make" so that extraneous
	  archive extraction won't be run every time (for automated tests).

svn path=/trunk/mcs/; revision=23706
2004-03-04 21:05:04 +00:00
Atsushi Eno d36a8d17a0 2004-01-20 Atsushi Enomoto <[email protected]>
* Added set of Post Schema Compilation Information tests, i.e.
	  xs-psci-compare.cs and psci-ms-all.zip.
	* Makefile: Added test-psci target.
	* README: Added notes on PSCI tests (however it is not for today's
	  implementation, but for the very near future with bunch of fixes)

svn path=/trunk/mcs/; revision=22290
2004-01-20 08:15:46 +00:00
Atsushi Eno b2bf5da369 2004-01-08 Atsushi Enomoto <[email protected]>
* xsdtest.cs : XmlReaders should be closed in case of errors.

svn path=/trunk/mcs/; revision=21843
2004-01-08 08:03:08 +00:00
Atsushi Eno 2a9e30eeb4 2004-01-05 Atsushi Enomoto <[email protected]>
* README, Makefile, test-masters.tar.gz, xsdtest.cs : Initial checkin.

svn path=/trunk/mcs/; revision=21708
2004-01-05 10:27:41 +00:00
Atsushi Eno cbaebb87c4 2004-01-03 Atsushi Enomoto <[email protected]>
* XmlSchemaTests.cs : fixed file path. Added more tests.
	* added XmlSchemaCollectionTests.cs and XmlSchemaDatatypeTests.cs (the
	  latter one's purpose overlaps with XmlSchemaBuiltInDatatypeTests ;)

svn path=/trunk/mcs/; revision=21639
2004-01-03 16:12:50 +00:00