Commit Graph
307 Commits
Author SHA1 Message Date
Atsushi Eno 8a15a405a9 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : add state management support. 
	* XmlWriter.cs : use above feature for "null Settings in source
	  writer" case. This brings some minor .NET compatibility and
	  should fix bug #607697.

	* XmlWriterTests.cs : remove NotWorking everywhere.


svn path=/trunk/mcs/; revision=159714
2010-06-30 07:05:11 +00:00
Atsushi Eno 08afe91b30 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
	  and corcompare).
	* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
	  wrapping writer instance.
	  If there was no Settings specified, return null.

	* System.Xml.dll.sources,
	  moonlight_raw_System.Xml.dll.sources,
	  monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.

	* XmlWriterTests.cs : add a bit more assertions.
	  Remove NotWorking from some tests.


svn path=/trunk/mcs/; revision=159712
2010-06-30 06:40:47 +00:00
Atsushi Eno 9d67c2d74c 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : more notes and assertions.


svn path=/trunk/mcs/; revision=159707
2010-06-30 01:19:44 +00:00
Atsushi Eno f0c4bb76e4 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : more notes and tests.


svn path=/trunk/mcs/; revision=159706
2010-06-30 00:19:44 +00:00
Atsushi Eno f0556afd00 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : refine failure conditions.


svn path=/trunk/mcs/; revision=159705
2010-06-29 23:20:44 +00:00
Atsushi Eno 43a5b77995 2010-06-30 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : add test matrix for understanding things.
	  Make those test names consistent. Mark as NotWorking.


svn path=/trunk/mcs/; revision=159704
2010-06-29 22:51:10 +00:00
Andreia Gaita 99ae6a6831 2010-06-29 Andreia Gaita <[email protected]>
* XmlWriterTests.cs : added tests for bug #607967

svn path=/trunk/mcs/; revision=159643
2010-06-29 00:44:46 +00:00
Atsushi Eno 944d6f7146 2010-06-16 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : do not try to parse xml:base="".
	  Fixed bug #608391.

2010-06-16  Atsushi Enomoto  <[email protected]>

	* XmlTextReaderTests.cs : added test for bug #608391.


svn path=/trunk/mcs/; revision=159013
2010-06-16 11:24:09 +00:00
Atsushi Eno f23c8f7fc2 2010-04-28 Atsushi Enomoto <[email protected]>
* XmlDocument.cs : it seems .net does allow Load() with such an xml
	  reader positioned in the middle of the document. Fixed bug #598953.

	* XmlDocumentTests.cs : add test for bug #598953.


svn path=/trunk/mcs/; revision=156278
2010-04-28 01:22:00 +00:00
Atsushi Eno 5aed01b5aa 2010-03-26 Atsushi Enomoto <[email protected]>
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
	  used for qname, treats non-prefixed name as in default namespace.

	* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
	  qname, with default namespace.


svn path=/trunk/mcs/; revision=154272
2010-03-26 13:56:39 +00:00
Atsushi Eno 12a17f7f10 2010-01-28 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
	  storing of zeros. Fixed bug #543332.

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


svn path=/trunk/mcs/; revision=150347
2010-01-28 05:54:20 +00:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno e013411012 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : Do not ignore ticks which are less than a
	  millisecond. Remove trailing zeros for milliseconds and ticks.

	* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
	  ticks.


svn path=/trunk/mcs/; revision=149618
2010-01-15 10:49:03 +00:00
Atsushi Eno 4079df7702 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : trim spaces when parsing TimeSpan.

	* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.


svn path=/trunk/mcs/; revision=149617
2010-01-15 10:21:16 +00:00
Atsushi Eno a2eea4d7e5 2010-01-15 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : DateTimeOffset parse is sloppy.

	* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
	  string with spaces.


svn path=/trunk/mcs/; revision=149609
2010-01-15 08:58:42 +00:00
Atsushi Eno 7f46cb5db2 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvertTests.cs : added commented-out tests for the remaining
	  parse tests by Tiaan Geldenhuys for XLinq, with the reason why.


svn path=/trunk/mcs/; revision=149388
2010-01-12 09:14:24 +00:00
Atsushi Eno c16c7121b1 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().

	* XmlConvertTests.cs : float parse should do the same. Fix NaN test.


svn path=/trunk/mcs/; revision=149386
2010-01-12 08:48:17 +00:00
Atsushi Eno 6d97ab5da5 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
	  with whitespace allowed.

	* XmlConvertTests.cs : another double parse test for string with
	  spaces, for string constants such as NaN.


svn path=/trunk/mcs/; revision=149385
2010-01-12 08:38:04 +00:00
Atsushi Eno 91f7cf5926 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
	  whitespaces.

	* XUtil.cs : to create an XNode from an object, do not use ToString()
	  directly. Handle TimeSpan in xsd manner.


svn path=/trunk/mcs/; revision=149382
2010-01-12 07:40:31 +00:00
Atsushi Eno e703e2593c 2010-01-12 Atsushi Enomoto <[email protected]>
* XmlWriter.cs : handle a corner case for empty string handling 
	  difference between XmlTextWriter and XmlWriter.Create().

	* XmlWriterTests.cs : added a corner case test for empty string handling
	  difference between XmlTextWriter and XmlWriter.Create().


svn path=/trunk/mcs/; revision=149368
2010-01-12 03:07:59 +00:00
Atsushi Eno 3e8c163580 2009-11-17 Atsushi Enomoto <[email protected]>
* XmlConvert.cs : fix DateTimeOffset roundtrip by giving format
	  strings in refined order. Patch by Santa Marta, at:
	  http://irc.gimite.net/channel/mono-jp/archive/20091105
	  ( http://smdn.invisiblefulmoon.net/misc/forum/programming/#n10 )

	* XmlConvertTests.cs : add test for DateTimeOffset roundtrip.


svn path=/trunk/mcs/; revision=146324
2009-11-17 08:48:40 +00:00
Andreia Gaita 88856b11d7 * XmlTextReaderTests.cs: Added ParsingWithNSMgrSubclass test to check
r146175 fix (chained namespace lookups using XmlNamespaceManager
subclasses)

svn path=/trunk/mcs/; revision=146179
2009-11-13 21:26:27 +00:00
Atsushi Eno e9f0b186ac 2009-11-11 Atsushi Enomoto <[email protected]>
* XmlNodeReaderImpl.cs : when the reader is at attribute value,
	  MoveToNextAttribute() incorrectly moved to the first attribute.
	  Fixed bug #550379.

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


svn path=/trunk/mcs/; revision=145910
2009-11-11 02:41:28 +00:00
Atsushi Eno 361af0a399 2009-09-15 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : removed duplicate ID attribute check
	  here as this behavior not specifically defined by W3C DOM Level 2
	  specification. Fixed bug #508296.

	* XmlAttributeCollectionTests.cs : add test for bug #508296 by
	  Tom Hindle.


svn path=/trunk/mcs/; revision=141952
2009-09-15 12:40:28 +00:00
Atsushi Eno 6d0574134d 2009-08-21 Atsushi Enomoto <[email protected]>
* XmlTextReader.cs : there still was use of bogus
	  XmlParserContext.NameTable.

	* XmlTextReaderTests.cs : added test for null nametable in parser
	  context.


svn path=/trunk/mcs/; revision=140397
2009-08-21 03:45:06 +00:00
Atsushi Eno 62f25871a3 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
	  as long as the URI is correct. Fixed bug #514015.

	* XmlNamespaceManagerTests.cs : add test for bug #514015.


svn path=/trunk/mcs/; revision=138396
2009-07-22 12:33:56 +00:00
Atsushi Eno ca5cc074aa 2009-07-22 Atsushi Enomoto <[email protected]>
* XmlInputStream.cs : cosmetic exception type change. Patch by
	  Hib Eris. Fixed bug #523971.

	* XmlTextReaderTests.cs : added test for bug #523971 by Hib Eris.


svn path=/trunk/mcs/; revision=138369
2009-07-22 08:38:04 +00: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
Gert Driesen 30241e72d5 * XmlResolverTest.cs: Fix ResolveUri test on Windows when current
directory is not on C drive.

svn path=/trunk/mcs/; revision=134593
2009-05-22 11:06:32 +00:00
Atsushi Eno 2e31d6db16 2009-05-19 Atsushi Enomoto <[email protected]>
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
	  incomplete. Patch by Jonas Larsson. Fixed bug #502168.

2009-05-07  Jonas Larsson <[email protected]> 

	* XmlSchemaValidatorTests.cs : added test for bug #501666.


svn path=/trunk/mcs/; revision=134396
2009-05-19 14:30:11 +00:00
Atsushi Eno 1c400f6aa7 2009-05-11 Atsushi Enomoto <[email protected]>
* XmlSchemaComplexType.cs : make complex content type work like .NET
	  does. Patch by Jonas Larsson. Fixed bug #501814.

	* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
	  Larsson.


svn path=/trunk/mcs/; revision=133908
2009-05-11 17:37:07 +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
Sebastien Pouliot cc6d045346 In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]> 

	* XmlReaderCommonTests.cs: Add test case for an empty string url

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>  

	* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
	a second change	using Path.GetFullPath. (GetStreamFromUrl) Add
	extra validations that would be missed in NET_2_1


svn path=/trunk/mcs/; revision=132856
2009-04-28 15:55:19 +00:00
Sebastien Pouliot 31751dd12a In Test/System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolverTest.cs: New. Unit tests for base features.

In System.Xml:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
	method for NET_2_1 profile.

In .:
2009-04-28  Sebastien Pouliot  <[email protected]>

	* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
	the unit tests


svn path=/trunk/mcs/; revision=132851
2009-04-28 15:23:37 +00:00
Atsushi Eno 6ffb2498cf 2009-04-22 Atsushi Enomoto <[email protected]>
* XmlAttributeCollection.cs : when the node to be inserted has owner
	  element _but_ is identical to that of this collection, do not
	  reject it to raise an error. Fixed bug #496022.

	* XmlAttributeCollectionTests.cs : added test for bug #496022.


svn path=/trunk/mcs/; revision=132344
2009-04-22 04:46:09 +00:00
Atsushi Eno af866ca922 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlParserContext.cs : .NET has weird nametable initialization.
	  Fixed bug #484519.

	* XmlParserContextTests.cs : added test for bug #484519.


svn path=/trunk/mcs/; revision=129483
2009-03-16 18:04:51 +00:00
Atsushi Eno 68389cd912 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
	  EndElement at the next XmlReader.Read(). Fixed bug #480066.

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


svn path=/trunk/mcs/; revision=129404
2009-03-16 07:37:44 +00:00
Atsushi Eno c7a471732a 2009-03-16 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : only bogus v1 XmlTextWriter ignores null
	  namespace for conflict check. Fixed bug #479725.

	* XmlWriterTests.cs : only bogus XmlTextWriter ignores null namespace
	  for namespae conflict check.


svn path=/trunk/mcs/; revision=129398
2009-03-16 06:48:19 +00:00
Atsushi Eno c225d87477 2009-02-10 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : similar fix in WriteStartElement() to
	  previous change. Fixed bug #474091.

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


svn path=/trunk/mcs/; revision=126417
2009-02-10 04:09:27 +00:00
Atsushi Eno da362d6d88 2009-02-09 Atsushi Enomoto <[email protected]>
* XmlElementTest.cs: SetAttribute(name,value) should identify value
	  change for existing node, from new node insertion.
	  Fixed bug #464394.

	* XmlElementTests.cs : added test for bug #464394.



svn path=/trunk/mcs/; revision=126323
2009-02-09 09:31:23 +00:00
Atsushi Eno fbda9fbe5d 2009-02-06 Atsushi Enomoto <[email protected]>
* XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
	  case it is null and the prefix has matching ns. Fixed bug #472634.

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


svn path=/trunk/mcs/; revision=126047
2009-02-06 14:13:28 +00:00
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
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