Commit Graph
336 Commits
Author SHA1 Message Date
Atsushi Eno 94811f231e 2005-12-09 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadToDescendant() should work when its ReadState is
	  Initial.

	* XmlReaderCommonTests.cs : added tests for ReadToDescendant() and
	  ReadToFollowing().


svn path=/trunk/mcs/; revision=54152
2005-12-09 07:52:09 +00:00
Atsushi Eno de3ddcb8ca 2005-12-09 Atsushi Enomoto <[email protected]>
* XmlChar.cs : removed incorrect comment.
	* XmlReader.cs : Create() clones XmlReaderSettings (if supplied).
	  For wrapped XmlReader, check ConformanceLevel to be consistent.
	* XmlTextReader.cs, XmlTextReader2.cs : added get_Conformance for
	  internal use. Removed unused fields.
	* XmlInputStream.cs : updated NonBlockingStreamReader to the latest
	  StreamReader (it is almost a copy).

	* XmlReaderSettingsTests.cs : added some ConformanceLevel tests.
	  Added CreateClonesSettings() to make sure XmlReader.Create() clones
	  XmlReaderSettings.


svn path=/trunk/mcs/; revision=54151
2005-12-09 06:43:34 +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 c2029b413f 2005-12-08 Atsushi Enomoto <[email protected]>
* XmlReaderSettings.cs :
	  set_Schemas() is fixed in 2.0 RTM (it just works).
	* XmlResolver.cs : throw ArgumentNullException instead of
	  ArgumentException when both base and relative urls are null.

	* XmlReaderSettingsTests.cs : SetSchemas() should not cause an error.
	  Added SetSchemasNull() as well.
	* XmlUrlResolverTests.cs : (ResolveUriWithNullArgs)
	  expect ArgumentNullException instead of ArgumentException.
	  This is a fix in .NET 2.0.


svn path=/trunk/mcs/; revision=54093
2005-12-08 05:53:02 +00:00
Atsushi Eno e87e54f481 2005-12-08 Atsushi Enomoto <[email protected]>
* XmlSchemaValidationException.cs : added SetSourceObject() which
	  is just for API compat (it does nothing on MS.NET).
	  Removed #if NET_2_0 inside #if NET_2_0.

	* XsdParticleValidationTests.cs : ValidateRootElementOnlyInvalid()
	  does not throw validation exception under MS 2.0, this NotDotNet.


svn path=/trunk/mcs/; revision=54092
2005-12-08 04:38:01 +00:00
Atsushi Eno b78ca0c164 2005-12-08 Atsushi Enomoto <[email protected]>
* XmlReaderSettings.cs : ProhibitDtd is set as default.
	* XmlWriterSettings.cs : no set_OutputMethod.

	* XmlReaderCommonTests.cs : use ProhibitDtd=false in CreateSimple()
	  and added CreateSimpleProhibitDtd().


svn path=/trunk/mcs/; revision=54090
2005-12-08 04:06:22 +00:00
Atsushi Eno 0dbee9dd3a 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : added CanReadBinaryContent.
	* XmlTextReader.cs, XmlTextReader2.cs : GetNamespacesInScope() are
	  now both public and private (i.e. hush IsVirtual).
	* XmlWriterSettings.cs, XmlWriter.cs, XmlTextWriter.cs :
	  NormalizeNewLines vanished.

	* XmlWriterSettingsTests.cs : NormalizeNewLines does not exist anymore


svn path=/trunk/mcs/; revision=52876
2005-11-10 18:12:16 +00:00
Atsushi Eno 8a668546b1 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : implemented VerifyTOKEN().

	* XmlConvertTests.cs : tests for ToUInt16/32/64() and VerifyTOKEN().


svn path=/trunk/mcs/; revision=52870
2005-11-10 17:44:03 +00:00
Atsushi Eno 0278b90f43 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : some tests for ToInt64(), ToSByte(),


svn path=/trunk/mcs/; revision=52861
2005-11-10 17:18:42 +00:00
Atsushi Eno 84269d9282 2005-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : VerifyNCName() and VerifyName() throws
	  ArgumentNullException for "".

	* XmlConvertTests.cs : some tests for ToInt16(), ToInt32(),
	  VerifyName() and VerifyNCName().


svn path=/trunk/mcs/; revision=52857
2005-11-10 16:55:55 +00:00
Atsushi Eno 38e3987552 2005-11-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : dependent XmlSchemaValidationFlags fix.
	  Added ReadElementContentAsObject() and ReadContentAsObject().
	* XmlReader.cs, XmlTextReader.cs :
	  LookupNamespace(string,bool) is now private.
	* XmlReader.cs, XmlNode,cs :
	  [DebuggerDisplay].

	* XmlSchemaValidationFlags.cs : updated to match 2.0 RTM.
	* XmlSchemaValidator.cs : related fix.

	* XmlSchemaValidatingReader.cs : XmlSchemaValidationFlags is updated.

	* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags is updated.



svn path=/trunk/mcs/; revision=52659
2005-11-07 17:22:05 +00:00
Atsushi Eno 2023a41054 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlNamespaceManagerTests.cs :
	  well, hence GetNamespacesInScope() is NotDotNet.


svn path=/trunk/mcs/; revision=52102
2005-10-23 20:14:48 +00:00
Atsushi Eno 795d84863f 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : (Error state check) actually I need to set Error.

	* XmlNamespaceManagerTests.cs : GetNamespacesInScope() - Added test 
	   labels. Fixed counts; they count default namespaces. MS seems to
	   have a bug on declaration removal (xmlns='') on .Local.
	* XmlNodeReaderTests.cs : in .NET 2.0 undeclared entity are not
	  allowed at all, so disabled tests that depends on such references.


svn path=/trunk/mcs/; revision=52101
2005-10-23 20:13:10 +00:00
Atsushi Eno bfa4dfa209 2005-10-23 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : throw InvalidOperationException if any of
	  WriteBlah() methods were invoked at error state.

	* XmlTextWriterTests.cs : split some tests that try to write nodes
	  at error state (.NET 2.0 correctly rejects them).


svn path=/trunk/mcs/; revision=52100
2005-10-23 19:48: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 01c929ffdc 2005-10-23 Atsushi Enomoto <[email protected]>
* Attr.cs : core0006A is not working under .NET 2.0.
	* Element.cs : core0008A and core0016A Are not working under .NET 2.0.
	* NamedNodeMap.cs : core0009M is not working under .NET 2.0.


svn path=/trunk/mcs/; revision=52095
2005-10-23 18:12:26 +00:00
Andrew Skiba 3e549defb2 addition to commit r52075 (described in ChangeLog already)
svn path=/trunk/mcs/; revision=52080
2005-10-23 11:49:35 +00:00
Andrew Skiba ad32bd84b9 * fixme.lst, knownFailures.lst: update to current failures list
* W3C.sln, W3C.vmwcsproj, README.j2ee, run-test.j2ee.bat: add files
	that help to run tests on Grasshopper



svn path=/trunk/mcs/; revision=52075
2005-10-23 10:30:54 +00:00
Atsushi Eno 6b340411a9 2005-10-04 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToTimeSpan() resulted in an infinite loop when the
	  digits for "second" were not exactly 3. Fixed bug #76328.

	* XmlConvertTests.cs : added test for bug #76328.


svn path=/trunk/mcs/; revision=51188
2005-10-04 18:08:14 +00:00
Atsushi Eno a584d18d44 2005-10-03 Atsushi Enomoto <[email protected]>
* XmlWriter.cs, XmlWriterSettings.cs, XmlTextWriter.cs :
	  added supprot for NormalizeNewLines.
	  NewLineOnAttributes is considered only when Indent is true.

	* XmlWriterSettingsTests.cs : test for NormalizeNewLines.


svn path=/trunk/mcs/; revision=51109
2005-10-03 09:35:02 +00:00
Atsushi Eno f50bd018f8 2005-10-01 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlDocument.cs : check id table updates when
	  XmlAttribute.set_Value() was invoked. Fixed bug #76311.

	* XmlAttributeTests.cs : test for bug #76311.


svn path=/trunk/mcs/; revision=51080
2005-10-01 18:34:38 +00:00
Atsushi Eno 57574a07ef 2005-10-01 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs :
	 XmlReader.Create() with string url argument are not working because
	 of incorrect choice of the .ctor().

	* XmlReaderCommonTests.cs : added simple Create() test.


svn path=/trunk/mcs/; revision=51075
2005-10-01 11:19:18 +00:00
Atsushi Eno 280e5f8d48 2005-09-28 Atsushi Enomoto <[email protected]>
* XmlNodeReaderImpl.cs : when the source node was not a document and
	  it is an empty element, Read() was incorrectly moving to the parent
	  of the source node. Patch by Csaba Halasz. Fixed bug #76260.

	* XmlNodeReaderTests.cs : added test for bug #76260.


svn path=/trunk/mcs/; revision=50962
2005-09-28 18:13:34 +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 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 ccef6c8982 2005-09-25 Atsushi Enomoto <[email protected]>
* XmlSchemaValidationFlags.cs, XmlSchemaValidator.cs :
	  NET_2_0 API updates.

	* XmlReader.cs, XmlReaderSettings.cs, XmlDocument.cs:
	  XmlSchemaValidationFlags updates.

	* XmlSchemaValidatingReader.cs: XmlSchemaValidationFlags updates.

	* XmlReaderSettingsTests.cs : XmlSchemaValidationFlags NET_2_0 update.


svn path=/trunk/mcs/; revision=50732
2005-09-25 17:43:39 +00:00
Atsushi Eno b241697162 2005-09-21 Atsushi Enomoto <[email protected]>
* XmlWriterSettings.cs : true NET_2_0 updates.

	* XmlWriterSettingsTests.cs : removed NormalizeNewLines.


svn path=/trunk/mcs/; revision=50354
2005-09-21 03:41:40 +00:00
Atsushi Eno 2da6c2e2c0 2005-09-21 Atsushi Enomoto <[email protected]>
* XmlNodeReader2.cs, XmlReader.cs,
	  XmlTextReader.cs, XmlTextReader2.cs,
	  XmlNodeChangedEventArgs.cs, XmlElement.cs,
	  XmlNode.cs, XmlDocument.cs :
	  updated NET_2_0 API.

	* XmlReaderSettingsTests.cs : updated NET_2_0 related tests.
	* NameTableTests.cs : numbered testcases. fixed argument order.


svn path=/trunk/mcs/; revision=50351
2005-09-21 02:58:41 +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 fd3a4d2430 2005-09-14 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : for surrogate pair, output character
        * reference
          as a single character instead of two reference pairs. Fixed
bug #76095.
          Patch by Brion Vibber.

        * XmlTextWriterTests.cs : added #76095 testcase.


svn path=/trunk/mcs/; revision=49997
2005-09-14 01:44:27 +00:00
Sebastien Pouliot 341651ffd9 2005-08-31 Sebastien Pouliot <[email protected]>
* XmlSecureResolverTests.cs: Added more test cases for CreateEvidence.
	* XmlSecureResolverCas.cs: New. CAS unit tests for XmlSecureResolver.
	* XmlExceptionCas.cs: New. CAS unit tests for exception serialization.


svn path=/trunk/mcs/; revision=49172
2005-08-31 12:53:58 +00:00
Atsushi Eno e380078e46 2005-08-17 Atsushi Enomoto <[email protected]>
* xmlconf.cs: we need error message to do real-world debugging.


svn path=/trunk/mcs/; revision=48467
2005-08-17 16:20:21 +00:00
Atsushi Eno 30972851f8 2005-08-08 Atsushi Enomoto <[email protected]>
* README, xmltest.cs : it's outdated now.


svn path=/trunk/mcs/; revision=48105
2005-08-08 07:32:55 +00:00
Atsushi Eno 657284b696 2005-08-04 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : When there was only one child in attribute
	  and it was an entity reference, set_Value() tried to set text value
	  and thus failed.

	* XmlAttributeTests.cs : Test if set_Value() works in such cases that
	  there was only one child in attribute and it was an entity reference.


svn path=/trunk/mcs/; revision=47993
2005-08-04 09:34:09 +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
Rafael Mizrahi 8002bc489b svn path=/trunk/mcs/; revision=47518 2005-07-21 14:40:09 +00:00
Atsushi Eno 764efc74fe 2005-07-14 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : In WriteQualifiedName(), when there is open
	  attribute, it calls LookupPrefix() and then if namespace was empty,
	  it resulted in an exception. Fixed bug #75546.

	* XmlTextWriterTests.cs : added bug #75546 testcase.


svn path=/trunk/mcs/; revision=47312
2005-07-14 16:49:36 +00:00
Andrew Skiba 5c70aeeaa2 fix absolute path to monowrapper to relative one
svn path=/trunk/mcs/; revision=46901
2005-07-04 07:44:22 +00:00
Andrew Skiba ae707b1ae9 remove standalone mode, use nunit exclusively
svn path=/trunk/mcs/; revision=46900
2005-07-04 07:26:31 +00:00
Atsushi Eno 512ed7121f 2005-06-29 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToTimeSpan() should accept milliseconds (according
	  to ISO 8601 and XSD datatypes 3.2.6.1).

	* XmlConvertTests.cs : added timespan milliseconds testcase.


svn path=/trunk/mcs/; revision=46727
2005-06-29 17:35:43 +00:00
Andrew Skiba 8d1f1e6c46 add nunit support
svn path=/trunk/mcs/; revision=46623
2005-06-28 06:41:51 +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
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
Andrew Skiba 8e800a1d51 Fixes valid-sa-086 test from W3C xmlconf suite
svn path=/trunk/mcs/; revision=46552
2005-06-27 12:19:24 +00:00
Raja R Harinath 4598b5ce15 * Makefile (EXTRA_DISTFILES): Add files in Test/XmlFiles and
Test/System.Xml/nist_dom/.

Fix distcheck.

svn path=/trunk/mcs/; revision=46550
2005-06-27 12:15:01 +00:00
Andrew Skiba 157d75c6a9 Remove fixed testcases from fixme.lst and knownFailures.lst; ignore one testcase that hangs mono runtime.
svn path=/trunk/mcs/; revision=46542
2005-06-27 09:27:55 +00:00
Atsushi Eno 67b1016a56 2005-06-23 Atsushi Enomoto <[email protected]>
* XsdParticleValidationTests.cs : XmlSchemaException -> 
	  XmlSchemaValidationException under 2.0 profile.


svn path=/trunk/mcs/; revision=46409
2005-06-23 04:58:02 +00:00
Atsushi Eno 779494c75c 2005-06-17 Atsushi Enomoto <[email protected]>
* DTDValidatingReader.cs : removed some extra IsDefault check (with
	  the latse code default attributes are stored in hashtables anyways.)
	  Fixup attribute namespaces _after_ xmlns attributse are filled.
	  The latest change is not good that namespaceURI of a local attribute
	  was incorrectly globally looked up (it should be always "").

	* XmlValidatingReaderTests.cs : added attribute namespace check in
	  DefaultXmlnsAttributeLookup() as well.


svn path=/trunk/mcs/; revision=46122
2005-06-17 08:22:15 +00:00
Atsushi Eno 93261fb2a4 2005-06-17 Atsushi Enomoto <[email protected]>
* XmlValidatingReader.cs : LookupNamespace() was trying to access to 
	  null reference to validatingReader.
	* DTDValidatingReader.cs : Fixed default xmlns* attribute handling.
	  It used to be valid only at the declaring element.

	* XmlValidatingReaderTests.cs : added DefaultXmlnsAttributeLookup().


svn path=/trunk/mcs/; revision=46120
2005-06-17 07:22:25 +00:00