Commit Graph
333 Commits
Author SHA1 Message Date
Atsushi Eno aa2607300a 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : do not hang in the middle of reading
	  byte chunk at some node types. Fixed bug #464229.

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


svn path=/trunk/mcs/; revision=123866
2009-01-20 10:35:44 +00:00
Atsushi Eno b9326e77b1 2009-01-08 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadContentAsString() does not reject non-elements.
	  ReadElementContentAsString() rejects non-content nodes.

	* XmlReaderCommonTests.cs : added test for ReadContentAsString()
	  and ReadElementContentAsString() against certain node types.


svn path=/trunk/mcs/; revision=122737
2009-01-08 02:39:23 +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
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Atsushi Eno a3f31057d1 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : Close() should correctly skip empty element.
	  In Read(), make sure to move from Element state.

	* XmlReader.cs : detailed error location in ReadSubtree().

	* XmlReaderCommonTests.cs : another Subtree+EmptyElement case.


svn path=/trunk/mcs/; revision=113339
2008-09-17 17:50:18 +00:00
Atsushi Eno 215f86b887 2008-09-17 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : make sure to set eof for empty element after
	  Read().

	* XmlReaderCommonTests.cs :
	  added test for NodeType for empty element.


svn path=/trunk/mcs/; revision=113312
2008-09-17 14:24:02 +00:00
Atsushi Eno b3d04b7317 2008-09-17 Atsushi Enomoto <[email protected]>
* XmlReader.cs : ReadSubtree() is valid only on an element.

	* XmlReaderCommonTests.cs :
	  added test for ReadSubtree() on non-element.


svn path=/trunk/mcs/; revision=113304
2008-09-17 13:04:56 +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 a4075531b5 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fixed bug #397934. Utc mode accepts more formats.

	* XmlConvertTests.cs : added test for bug #397934


svn path=/trunk/mcs/; revision=105562
2008-06-11 11:27:45 +00:00
Atsushi Eno 20aff136fb 2008-06-11 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : no need for TARGET_JVM.

	* XmlConvertTests.cs : no need for TARGET_JVM. Fix wrong comparison.


svn path=/trunk/mcs/; revision=105558
2008-06-11 10:57:03 +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
Atsushi Eno 3ef5ecc28d 2008-06-05 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : now we can use roundtrip format for float/double.
	  Fixed bug #320424.

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


svn path=/trunk/mcs/; revision=104961
2008-06-05 07:55:34 +00:00
Noam Lampert 5a43e30bfa Remove all vmwcproj files from old Grasshopper version
svn path=/trunk/mcs/; revision=104227
2008-05-28 09:28:24 +00:00
Atsushi Eno 4c58cdb97c 2008-05-22 Atsushi Enomoto <[email protected]>
* XmlReader.cs : some Create() overloads with baseUri argument did
	  not set baseUri correctly. Fixed bug #392385.

	* XmlReaderSettingsTests.cs : added test for bug #392385.


svn path=/trunk/mcs/; revision=103763
2008-05-22 07:29:51 +00:00
Atsushi Eno ac161ee6eb 2008-05-07 Atsushi Enomoto <[email protected]>
* XmlReader.cs : force CloseInput to every XmlReader that is created
	  from url (I mean, every internal XmlReader instance).

	* XmlFilterReader.cs : clone settings so that it does not depend on
	  inconsistent settings after creation. Fixed bug #385638.

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


svn path=/trunk/mcs/; revision=102702
2008-05-07 08:34:57 +00:00
Atsushi Eno 680bfdbdee 2008-04-17 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : check attribute identity only if the
	  source node is in the document tree. Fixed bug #380720.

	* XmlElementTests.cs : added test for bug #380720.
	* XmlAttributeTests.cs : numbered some assertions.


svn path=/trunk/mcs/; revision=101019
2008-04-17 16:02:53 +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
Gert Driesen 55132b42dd * XmlAttributeTests.cs: Use Assert instead of deprecated Assertion
class. Improved a few tests. Added link to MS bug report for regression
in .NET 2.0. Numbered tests.

svn path=/trunk/mcs/; revision=99456
2008-03-31 18:46:09 +00:00
Atsushi Eno caea8c9e44 2008-02-19 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : .net does not populate XmlNamespaceManager
	  automatically.
	* XmlDocument.cs : so, always create one here.

	* XmlParserContextTests.cs : they are working. case #3 should not
	  try to parse broken internalSubset (we do not allow broken
	  intsubset and it is almost no worthy of assuring only-nominal
	  .net compat that such broken internalSubset should be allowed).


svn path=/trunk/mcs/; revision=96116
2008-02-19 05:33:38 +00:00
Atsushi Eno d8ad395849 2008-01-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : MoveToNextSibling() should check EOF (as Skip() does
	  not). Fixed bug #347768.

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


svn path=/trunk/mcs/; revision=93873
2008-01-25 03:47:12 +00:00
Gert Driesen 49a0cca265 * XmlParserContextTests.cs: Added ctor tests.
* System.Xml_test.dll.sources: added XmlParserContextTests.cs.

svn path=/trunk/mcs/; revision=92968
2008-01-15 17:40:34 +00:00
Konstantin Triger e175c2c052 TARGET_JVM: make sure XmlDateTimeSerializationMode.Unspecified works
svn path=/trunk/mcs/; revision=92606
2008-01-10 17:56:47 +00:00
Atsushi Eno 3b434e9bea 2007-12-06 Atsushi Enomoto <[email protected]>
* XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
	  relative URIs out.

	* XmlUrlResolverTests.cs : fixed test; file://file.txt is to access
	  such a server whose (domain) name is "file.txt", which is actually
	  an absolute URI. Remove "regression" in the nunit test.


svn path=/trunk/mcs/; revision=90794
2007-12-06 06:32:05 +00:00
Atsushi Eno a477ee03e7 revert the broken change that even fails on .NET 2.0.
svn path=/trunk/mcs/; revision=90445
2007-11-29 17:23:23 +00:00
Konstantin Triger ae40414c3e fix ToDateTime(XmlDateTimeSerializationMode.Unspecified)/ToString(DateTime) for local time
svn path=/trunk/mcs/; revision=90413
2007-11-29 07:57:02 +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 0274fff8a3 2007-11-09 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
	  allow more strings than existing one. Fixed bug #339004.

	* XmlConvertTests.cs : added test for #339004 and more.


svn path=/trunk/mcs/; revision=89305
2007-11-09 08:48:09 +00:00
Gert Driesen 7d297a4a8a * XmlConvertTests.cs: Added link to MS bug report.
svn path=/trunk/mcs/; revision=88545
2007-10-31 09:43:18 +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 756ab6c79b 2007-10-30 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
	  not Parse(). Use 'K' for roundtrip format.

	* XmlCustomFormatter.cs : use RoundtripKind when converting to and
	  from DateTime.

	* XmlConvertTest.cs : added test for DateTime roundtrip.

	* XmlSerializerTests.cs : added test for bug #337729.


svn path=/trunk/mcs/; revision=88448
2007-10-30 12:33:34 +00:00
Atsushi Eno e977cbe8df 2007-10-19 Atsushi Enomoto <[email protected]>
* SubtreeXmlReader.cs : when a subtree reader is closed, the original
	  reader moves to the end of the subtree. Fixed bug #334752, patch by
	  Scott Peterson.

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


svn path=/trunk/mcs/; revision=87812
2007-10-19 05:36:00 +00:00
Atsushi Eno 854f0d1cdb 2007-09-28 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
	  ignores attributes and namespace decls, so do that.
	* XQueryConvert.cs : removed extra stuff that are not in use.

	* XmlWriterTests.cs : added WriteNodeXPathNavigatorAttribute().


svn path=/trunk/mcs/; revision=86546
2007-09-28 05:27:11 +00:00
Atsushi Eno 28bfedcf61 2007-09-27 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : implemented WriteValue(object) based on
	  MSDN "Writing Typed Data" with some fix.
	  http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
	* XmlTextWriter.cs : state check is extraneous. It caused unexpected
	  rejection of empty namespace URI.

	* XmlWriterTests.cs : added test for WriteValue(object).
	* XmlTextWriterTests.cs : added WriteQualifiedName() test with empty
	  namespace.


svn path=/trunk/mcs/; revision=86483
2007-09-27 11:39:15 +00:00
Atsushi Eno 08087f828c 2007-08-13 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : fix extraneous indentation which is put after
	  omitted xmldecl.

	* XmlWriterSettingsTests.cs : added test for extraneous newline on
	  OmitXmlDeclaration mode.


svn path=/trunk/mcs/; revision=83958
2007-08-13 13:51:34 +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 99887597f8 2007-07-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : in WriteNode(XPathNavigator,bool), default namespace
	  is broken. Fixed bug #82051.

	* XmlWriterTests.cs : added test for bug #82051.


svn path=/trunk/mcs/; revision=81852
2007-07-12 08:31:57 +00:00
Atsushi Eno 44effe49e4 2007-07-11 Atsushi Enomoto <[email protected]>
* XmlReader.cs : looks like I introduced extra Settings check at
	  r69383. Fixed bug #82062.

	* XmlReaderSettingsTests.cs : added test for bug #82062.


svn path=/trunk/mcs/; revision=81785
2007-07-11 11:37:37 +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 c377364220 2007-06-13 Atsushi Enomoto <[email protected]>
* XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
	  but since XmlDocumentFragment does not override this property
	  it must be handled here).

	* XmlDocumentFragmentTests.cs : added InnerText().
	* XmlWriterSettingsTests.cs : replace \r\n with \n to make it pass
	  on windows.


svn path=/trunk/mcs/; revision=79457
2007-06-13 17:29:58 +00:00
Atsushi Eno a90b8aa7ce 2007-05-31 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs :
	  NewLineOnAttributes indentation fix, for bug #81770.

	* XmlWriterSettingsTests.cs : added test for NewLineOnAttributes.


svn path=/trunk/mcs/; revision=78290
2007-05-31 02:23:03 +00:00
Gert Driesen 8774ffbfae * XmlWriterTests.cs: Added NotWorking Create_XmlWriter2 test.
svn path=/trunk/mcs/; revision=77988
2007-05-26 08:43:56 +00:00
Gert Driesen 021f19332f * XmlWriterTests.cs: Renamed Close* tests to Create*, and improved
their coverage. Commented out newly introduced tests since they fail
on Mono.

svn path=/trunk/mcs/; revision=77987
2007-05-26 07:48:31 +00:00
Gert Driesen 00f4cbd1be * XmlWriterTests.cs: Added tests for Close that verify closing of
underlying stream.

svn path=/trunk/mcs/; revision=77503
2007-05-16 19:22:11 +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 044e2c1ec4 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : MinValue and MaxValue are unchanged by the
	  serialization mode (unlike DateTime.ToString()).

	* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.

	* XmlConvertTests.cs : added test for MaxValue serialization with
	  every XmlDateTimeSerializationMode.


svn path=/trunk/mcs/; revision=76275
2007-04-25 19:31:47 +00:00
Atsushi Eno 22c1a62ad1 2007-04-25 Atsushi Enomoto <[email protected]>
* XmlReader.cs : fixed wrong depth comparison in ReadToNextSibling().
	  Fixed bug #81451, by Eric Mercier.

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


svn path=/trunk/mcs/; revision=76259
2007-04-25 16:02:28 +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