Commit Graph
387 Commits
Author SHA1 Message Date
Atsushi Eno 88c6254f34 Extend supported XmlDateTimeSerialization formats. Fixed bug #690475. 2011-04-28 17:35:38 +09:00
Atsushi Eno 7c23f96f71 Auto detect BOM-less utf-16 and utf-32. Fixed bug #674580. 2011-03-09 15:56:16 +09:00
Atsushi Eno 5dc4ecd8e8 Remove wrong buffer size check in XmlTextReader.ReadChrs(). 2011-03-08 15:26:51 +09:00
Atsushi Eno 38c9b6b53a XmlReader.ReadToNextSibling() saved wrong Depth and failed to proceed.
Fixed bug #676020.
2011-03-08 00:47:41 +09:00
Atsushi Eno 9021910845 Do not return DocumentFragment from AppendChild() etc. Fixed bug #666249. 2011-01-31 13:27:46 +09:00
Atsushi Eno 8fd76fb60d Fix ToDateTime() with serialization mode to not mess hour based on timezone.
Fixed bug #661787.
2011-01-05 17:00:58 +09:00
Atsushi Eno 26eaa08958 Return different instances of XmlSchemaInfo for each validated node in XmlSchemaValidatingReader. 2010-11-29 21:36:50 +09:00
Atsushi Eno f166d738ba Do not add 'zzz' to all DateTime formats blindly. Fixed bug #655089. 2010-11-26 14:36:31 +09:00
Atsushi Eno 4ceceaf50b The test is network dependent. 2010-11-19 13:04:58 +09:00
Andreia Gaita ef80c566af [Xml] Fix GetAttribute to handle null namespaces properly, add unit test. 2010-10-27 19:33:56 +01:00
atsushieno c7d49e94be Parse list type, and parse QName without prefix, as expected. 2010-08-09 17:43:40 +09:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
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