Commit Graph
313 Commits
Author SHA1 Message Date
Atsushi Eno 6c0c6858a8 2006-11-14 Atsushi Enomoto <[email protected]>
* XmlReaderSettings.cs : in copy constructor, copy (dispatch)
	  validation event as well. Add OnValidationError() to be invoked
	  by other internal stuff to raise the validation event.

	* XmlSchemaValidatingReader.cs : dispatch validation events from
	  XmlReaderSettings. Turned out that outside System.Xml.dll
	  XmlReaderSettings.ValidationEventHandler is useless.

	* XmlReaderSettingsTests.cs : added validation event handler test
	  case.


svn path=/trunk/mcs/; revision=67814
2006-11-14 07:28:29 +00:00
Atsushi Eno 53341ede85 2006-11-13 Michael Meeks <[email protected]>
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
	pass the XmlResolver through to the GetStream impl.

2006-11-13  Atsushi Enomoto <[email protected]>

	* XmlReaderSettingsTests.cs : added custom resolver case for primary
	  XML stream (custom resolver is indeed used and here it should cause
	  error).


svn path=/trunk/mcs/; revision=67808
2006-11-14 01:25:47 +00:00
Atsushi Eno 12d5e7c137 2006-11-13 Atsushi Enomoto <[email protected]>
* XmlReaderSettingsTests.cs : added NullResolver() case.


svn path=/trunk/mcs/; revision=67806
2006-11-14 00:29:28 +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 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 88edd02629 2006-09-26 Atsushi Enomoto <[email protected]>
* XmlDeclaration.cs :
	  Removed bogus return statement in Value. Fixed bug #79496.

	* XmlDeclarationTests.cs : added bug #79496 case.


svn path=/trunk/mcs/; revision=65921
2006-09-26 15:52:09 +00:00
Atsushi Eno e2b9ba5fa5 2006-09-21 Atsushi Enomoto <[email protected]>
* XmlNameEntryCache.cs : It should expand temporary buffer even at
	  initial state. Fixed bug #79468.

	* XmlDocumentTests.cs : added bug #79468 case.


svn path=/trunk/mcs/; revision=65803
2006-09-22 03:21:03 +00:00
Atsushi Eno a6e2f53a1d 2006-09-19 Atsushi Enomoto <[email protected]>
* XmlElement.cs : for non-atomized names, alter null prefix with "".
	  Fixed bug #79420.

	* XmlElementTests.cs : added test for #79420.
	* XmlAttributeTests.cs : added similar test.
	* XmlDocumentTests.cs : fix warnings.


svn path=/trunk/mcs/; revision=65621
2006-09-19 05:13:39 +00:00
Kornél Pál 546a1134d2 Converted source files to UTF-8 (without byte order mark). Use UTF-8 as the default encoding for compilers.
svn path=/trunk/mcs/; revision=64941
2006-09-05 13:54:12 +00:00
Atsushi Eno ec7c2c1d49 2006-09-04 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() and its family should allow 
	  attribute node. Fixed bug #79268.

	* XmlReaderCommonTests.cs : added test for bug #79268.


svn path=/trunk/mcs/; revision=64843
2006-09-04 05:06:44 +00:00
Atsushi Eno d543ed0b78 2006-09-01 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : expect atomized names only when it is
	  appropriate. Fixed bug #79047.

	* XmlTextWriterTests.cs : added test for bug #79047


svn path=/trunk/mcs/; revision=64676
2006-09-01 05:21:48 +00:00
Atsushi Eno c5064307cb 2006-08-26 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
	  so that it could fill default and fixed attributes. This ends up
	  to fix bug #79163 (it fills fixed "xmlns" attribute and thus
	  the node's namespace URI becomes that of glade-2.0).

	* XmlDocumentTests.cs : added test for bug #79163.


svn path=/trunk/mcs/; revision=64413
2006-08-26 16:53:41 +00:00
Andrew Skiba 09fa997eba update knownFailures.lst
svn path=/trunk/mcs/; revision=63915
2006-08-17 14:37:01 +00:00
Andrew Skiba 5efa0a8424 update knownFailures.lst
svn path=/trunk/mcs/; revision=63883
2006-08-17 07:56:53 +00:00
Andrew Skiba 4d5a8ec003 run xml standalone tests on GH 2.0
svn path=/trunk/mcs/; revision=63811
2006-08-16 13:20:41 +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
Andrew Skiba de644483a8 support net_2_0 PROFILE
svn path=/trunk/mcs/; revision=63714
2006-08-14 11:48:37 +00:00
Atsushi Eno fc826ee0c8 2006-08-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : more indentation fixes. Now I believe it is
	  almost MS compat, but it won't help poor Mike.

	* XmlTextWriterTests.cs : more indentation tests.


svn path=/trunk/mcs/; revision=63574
2006-08-10 05:56:02 +00:00
Atsushi Eno e8adca21e7 2006-08-07 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : WriteBinHex() is allowed at Attribute state.
	  Fixed bug #79019.

	* XmlTextWriterTests.cs : test for #79019.


svn path=/trunk/mcs/; revision=63422
2006-08-07 03:36:21 +00:00
Atsushi Eno 93c714b33f 2006-07-28 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
	  should not cause indentation override like text, cdata and
	  whitespaces do.
	  Fixed some error messages on node kind.
	* XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
	  (I don't want to remove old great code but it confused mike today.)

	* XmlTextWriterTests.cs : added test case for comments, PIs and
	  indentation.


svn path=/trunk/mcs/; revision=63079
2006-07-28 15:45:18 +00:00
Atsushi Eno 2e8e4e6a2f 2006-07-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : TimeSpan conversion for TimeSpan.MinValue was
	  failing.

	* XmlConvertTest.cs :
	  Added TimeSpan conversion test for min/max values.


svn path=/trunk/mcs/; revision=62944
2006-07-25 08:42:59 +00:00
Atsushi Eno e7937e3666 2006-06-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs : when Create() received string url, it should set 
	  XmlTextReader2.CloseInput always true. Fixed bug #78706.

	* XmlReaderCommonTests.cs : added test for bug #78706.


svn path=/trunk/mcs/; revision=62053
2006-06-26 04:45:26 +00:00
Atsushi Eno 234edcaeed 2006-06-08 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : if an attribute being written has the same
	  non-empty namespace URI as current default namespace, its prefix
	  should be written. Fixed bug #78598.

	* XmlTextWriterTests.cs : added test for bug #78598.


svn path=/trunk/mcs/; revision=61550
2006-06-08 02:39:12 +00:00
Atsushi Eno 95f31f664c 2006-05-09 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
	  always use empty string for prefix.

	* XmlAttributeTests.cs : added NonEmptyPrefixWithEmptyNS().


svn path=/trunk/mcs/; revision=60438
2006-05-09 11:55:53 +00:00
Atsushi Eno a301e7e1da 2006-04-21 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
	  rejected after writing some content. I totally disagree on that
	  it should be allowed, but here is the fix.

	* XmlTextWriterTests.cs : test for bug #78148.


svn path=/trunk/mcs/; revision=59722
2006-04-21 02:29:45 +00:00
Atsushi Eno 4bc7d6b705 2006-04-14 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
	  the argument type System.Object.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs()
	  with argument typeof(object).


svn path=/trunk/mcs/; revision=59479
2006-04-14 09:55:16 +00:00
Atsushi Eno f764fa4dfd 2006-04-12 Atsushi Enomoto <[email protected]>
* System.Xml_test.dll.sources :
	  Added Test/System.Xml/XmlDefaultReader.cs.

	* XmlSchemaValidatingReader.cs : don't reject such XmlReader that
	  does not implement IXmlNamespaceResolver.

	* XmlReaderSettingsTests.cs : 
	  Added CreateValidatorFromNonIXmlNamespaceResolver() which is
	  uncovered by NVDL validator.
	* XmlDefaultReader.cs : new file for above.


svn path=/trunk/mcs/; revision=59399
2006-04-12 10:27:57 +00:00
Atsushi Eno bbbe93b299 2006-04-06 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadElementContentAsXXX() did not consume empty
	  element correctly.

	* XmlReaderCommonTests.cs : added test for 
	  ReadElementContentAsString() and empty element.


svn path=/trunk/mcs/; revision=59111
2006-04-06 12:12:50 +00:00
Atsushi Eno ac928fb2a9 2006-04-05 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : Create(StringBuilder,XmlWriterSettings) was missing
	  settings argument to pass another .ctor().
	* XmlWriterSettings.cs : set_NewLineChars() should reject null.

	* XmlWriterSettingsTest.cs : added tests on set_Encoding(),
	  set_NewLineChars() and OmitXmlDeclaration.


svn path=/trunk/mcs/; revision=59061
2006-04-05 13:36:56 +00:00
Andrew Skiba b83c49167b merge java tests stuff from mainsoft.1.7 branch
svn path=/trunk/mcs/; revision=58951
2006-04-03 13:47:42 +00:00
Andrew Skiba 2bf6321467 TARGET_JVM: use nunit from mono tree
svn path=/trunk/mcs/; revision=58935
2006-04-03 12:02:23 +00:00
Atsushi Eno 45352253ca 2006-03-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs: ReadContentAsXXX() just stops at start element,
	  without rejecting it as an error.
	  ReadElementContentAsXXX() rejects child element nodes.

	* XmlReaderCommonTests.cs : Added tests for ReadContentAsString() and
	  ReadElementContentAsString().


svn path=/trunk/mcs/; revision=57691
2006-03-08 12:33:01 +00:00
Atsushi Eno 9275dc19bf 2006-02-24 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs :
	  WriteRaw() has stupid second arg. Fixed bug #77623.
	  WriteString() should raise an error when it is called immediately
	  after WriteStartDocument().

	* XmlTextWriterTests.cs : added test for bug #77623. Also fixed
	  WriteString() test which failed to fail (Assert.Fail).


svn path=/trunk/mcs/; revision=57229
2006-02-24 06:58:11 +00:00
Atsushi Eno 578b26de8c 2006-02-22 Atsushi Enomoto <[email protected]>
* XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
	  They were always regarded as invalid.
	* XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
	  characters as character references. It totally does not make sense
	  but corcompare depended on that behavior.

	  This "compatibility" fix causes 10% or more performance loss!!!

	* XmlTextWriterTests.cs : added invalid character processing test.


svn path=/trunk/mcs/; revision=57145
2006-02-22 07:05:20 +00:00
Atsushi Eno 9eb523dd9f 2006-02-21 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
	  which discards "overriden" namespaces.
	* XmlTextWriter2.cs : fresh implementation.
	  - The source structure is simplified and cleaner.
	  - When outputting escaped string, output directly to TextWriter.
	  - roughly 20% performance improvement.

	  (Also fixed previous perf. evaluation excess in ChangeLog.)


	* XmlReaderCommonTests.cs : added custom assertion overload that takes
	  test label.
	* XmlNodeReaderTests.cs : labeled some.
	* XmlTextWriterTests.cs :
	  Changed the semantics of AttributeNamespacesXmlnsXmlns() and
	  removed NotDotNet (in contrast this test should fail with previous
	  version of XmlTextWriter). See the code comment for details.
	  Added WriteQualifiedNameXmlnsError().


	* System.Xml.dll.sources : removed XmlTextWriterOpenElement.cs and 
	  XmlTextWriter.cs. Added XmlTextWriter2.cs, to be renamed to
	  XmlTextWriter.cs in a few days or weeks.


svn path=/trunk/mcs/; revision=57095
2006-02-21 15:39:10 +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 dc2376e29c 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlTextWriterTests.cs : tiny test name fix, as it does not actually
	  test WriteString().


svn path=/trunk/mcs/; revision=56843
2006-02-14 03:45:44 +00:00
Atsushi Eno f99e279c01 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
	  state check and closes open tag.

	* XmlTextWriterTests.cs : added test WriteRaw("") closes open tag.


svn path=/trunk/mcs/; revision=56842
2006-02-14 03:44:18 +00:00
Atsushi Eno 8701dd6372 2006-02-14 Atsushi Enomoto <[email protected]>
* XmlTextWriterTests.cs : numbered some tests and added some comments.


svn path=/trunk/mcs/; revision=56840
2006-02-14 03:23:14 +00:00
Atsushi Eno 1c8a5029e0 2006-01-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToString(TimeSpan) should return valid duration
	  for TimeSpan.Zero, rather than "P". Fixed bug #77350

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


svn path=/trunk/mcs/; revision=56026
2006-01-25 03:36:13 +00:00
Atsushi Eno ee9d802656 2006-01-16 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : handle Ticks. Fixed bug #77252.

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


svn path=/trunk/mcs/; revision=55620
2006-01-16 06:06:54 +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 5d8f9644c4 2006-01-13 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Fixed bug #77082.
	  When the state was Start, after WriteProcessingInstruction() and
	  WriteWhitespace() change it to Prolog.
	  After WriteDocType() set state to WriteState.Element.

	* XmlTextWriterTests.cs : added some tests for XMLdecl state check.

	* XslTransformTests.cs : Output_Indent_Xml_DocType() is working now.


svn path=/trunk/mcs/; revision=55487
2006-01-13 05:03:39 +00:00
Atsushi Eno e2e89695a1 2006-01-12 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Do not local duplicate of automatically-created
	  prefixes (i.e. check local autocreated prefixes other than
	  namespaces from ancestors). Fixed bug #77086 and #77087.

	* XmlTextWriterTests.cs : Split AutoCreatePrefixes() and marked as
	  Ignore rather than NotWorking. Also it is not for bug #77086 and
	  #77077 (they were fixed). See bug #77088.


svn path=/trunk/mcs/; revision=55418
2006-01-12 06:03:06 +00:00
Atsushi Eno d2efba1d17 2006-01-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : use XmlChar.IsNmToken() to check argument and throw
	  ArgumentException in WriteNmTokenInternal().

	* XmlTextWriterTests.cs : re-enabled WriteNmToken_InvalidChars().


svn path=/trunk/mcs/; revision=55415
2006-01-12 05:04:09 +00:00
Atsushi Eno 1ca0a71ebf 2006-01-12 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
	  such invalid "xml" prefix which is being mapped to different
	  namespace URI than the predefined one.
	  Removed comment that does not make sense.
	* XmlNamespaceManager.cs : IsValidDeclaration() could be private.
	  Added some comments.

	* XmlTextWriterTests.cs : re-enabled bug #77094 related tests.


svn path=/trunk/mcs/; revision=55414
2006-01-12 04:47:39 +00:00
Atsushi Eno d364a58d86 2006-01-06 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
	  ReadSubtree() for non-element content since they are not allowed
	  in ReadSubtree() (but allowed here).

	* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
	  rather than WriteNode(XmlWriter, bool) in WriteSubtree().

	* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
	  as well as XPathNavigator.WriteSubtree(XmlWriter).


svn path=/trunk/mcs/; revision=55143
2006-01-06 11:56:08 +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