Commit Graph
406 Commits
Author SHA1 Message Date
Atsushi Eno 976be34045 [xml] XmlTextReader: Value was wrong after ReadAttributeValue() on xml declaration. 2014-10-24 12:20:09 +08:00
Alexander Köplinger ddcfc42070 Cleanup namespace names of class lib tests to follow convention
A couple of the test suites didn't follow the MonoTests.<namespace of class under test> naming convention for the namespace.
2014-09-04 18:55:58 +02:00
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Miguel de Icaza 2cf74970a1 Merge pull request #835 from HorstKakuschke/master
Fixes Xamarin Bug 16742:  XmlConvert.ToDateTime(string, XmlDateTimeSeria...
2014-02-12 15:24:11 -05:00
Marek Safar a6e236b2d6 [system.xml] Support more primitive types in XmlReader::ReadContentAs 2014-02-10 23:10:58 +01:00
Andrés G. Aragoneses 0eb40ad2da Fix very sticky typo in numerous places 2014-01-19 17:51:24 +01:00
Horst Kakuschke 280fe42c65 Additional tests for Xamarin Bug 16742 + style enhancements 2013-12-17 13:53:25 +01:00
Horst Kakuschke 2ff1bf33aa Fixes Xamarin Bug 16742: XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode) throws index out of bounds exception
Fix for bug + added tests for method
XmlConvert.ToDateTime(string, XmlDateTimeSerializationMode)
2013-12-11 20:14:17 +01:00
Sebastien Pouliot c3b782f4ec Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only 2013-03-18 17:38:28 -04:00
Rodrigo Kumpera abe9dc6206 Revert "Fix object::GetType when remoting is enabled."
This reverts commit 93e2d1dc48.
2013-03-01 10:54:09 -05:00
Rodrigo Kumpera 93e2d1dc48 Fix object::GetType when remoting is enabled. 2013-03-01 10:52:03 -05:00
Marek Safar dd4cc7ca66 Tests update for mobile profile 2013-03-01 15:31:25 +01:00
Sergey Bogdanov b6b26f5afd - XmlConvert.ToString to TimeSpan incorrectly returns T suffix even if Time was not set (0h 0m 0s) 2012-08-08 15:13:20 +03:00
Marek Safar 9215ddf7ad Make XmlWriterSettingsTests .net compatible 2012-06-06 14:52:01 +01:00
Martin Baulig 8b3b458b19 XmlResolver.GetEntityAsync().
* The default implementation throws NotImplementedException.
* Added nunit tests.
2012-06-06 02:51:44 +02:00
Martin Baulig 4c8278ed3b Add .NET 4.5 async methods to XmlReader and XmlWriter. 2012-06-03 04:02:28 +02:00
Richard Kettlewell b79b1ceaf5 Fix XmlTextWriter's use of NewLineHandling.
- Move the setting of newline_handling early enough that Initialize()
  can see it.
- Reduce the set of characters that trigger the slow path for
  attribute values for the NewLineHandling.None case.
- Rewrite the handling of \t, \r and \n to match the MS docs
  (which match the observed behavior of their implementation)
- Add some tests.
2012-05-03 10:49:54 +01:00
Atsushi Eno 2927d27304 bugfix #3231 - when XmlWriterSettings specifies Indent, some WriteWhitespace() is ignored. 2012-03-08 22:42:10 +09:00
Atsushi Eno 82f61e9074 Fix bug 998 - in XmlResolver.ResolveUri(), make some policy change on "how to determine a string as an absolute URI.
It's a bit difficult decision, as the "relative URI" could be any path string
that contain colons as a *valid* path (especially on *nix land).
We historically did allow such string that contain "http:" etc. as to be
treated as absolute (which historically worked long time).
But this test case uncovered possible other cases.
Hopefully this does not bring issues that is pretty much anticipated. Such
issues could also happen in older code anyways.
2012-01-19 20:45:42 +09:00
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