32 Commits
Author SHA1 Message Date
Atsushi Eno 4990b4c47b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
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 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 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 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 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
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 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
Gert Driesen 18d58db8f5 * XmlTextWriterTests.cs: No longer derive from deprecated Assertion
class. Added WriteDocType tests.
* XmlWriterTests.cs: No longer derive from deprecated Assertion class.

svn path=/trunk/mcs/; revision=54531
2005-12-16 14:06:42 +00:00
Atsushi Eno 99c907944c 2005-12-08 Atsushi Enomoto <[email protected]>
* System.Xml.dll.sources : added XmlSchemaCompilationSettings.cs

	* XmlReaderSettings.cs : thanks to idiotic MS design,
	  AllowXmlAttributes is turned on by default.

	* XmlSchemaCompilationSettings.cs : new file.
	* XmlSchemaSet.cs : added CompilationSettings property.
	* XmlSchemaComplexType.cs : support for EnableUpaCheck.

	* XmlReaderSettingsTests.cs : (DefaultValue)
	  Added assertion label everywhere.
	* XmlWriterTests.cs : WriteNodeError is broken under MS.NET 2.0 (it
	  should cause an error).

	* XmlSchemaSetTests.cs : added CompilationSettings tests.


svn path=/trunk/mcs/; revision=54094
2005-12-08 06:56:12 +00:00
Nick Drochak 2a4ecd67f1 2005-01-10 Nick Drochak <[email protected]>
* XmlWriterTests.cs: Fix build warnings.
	* XmlReaderCommonTests.cs: Make tests pass on Fx1.1.  XmlNodeReader
	has different default attributes it seems.

svn path=/trunk/mcs/; revision=38601
2005-01-10 08:58:42 +00:00
Atsushi Eno d071899d3e 2004-11-14 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : Added test for WriteAttributes().


svn path=/trunk/mcs/; revision=36105
2004-11-14 06:35:48 +00:00
Atsushi Eno 103be5da58 2004-09-06 Atsushi Enomoto <[email protected]>
* XmlTextReaderTests.cs : added ProhibitDtd().
	* XmlWriterTests.cs : added WriteNodeError().

svn path=/trunk/mcs/; revision=33423
2004-09-06 16:52:07 +00:00
Atsushi Eno 485add530e 2004-01-14 Atsushi Enomoto <[email protected]>
* XmlAttributeCollectionTests.cs : Added RemoveDefaultAttribute().
	* XmlDocumentTests.cs, XmlElementTests.cs, XmlNodeReaderTests.cs,
	  XmlTextReaderTests.cs, XmlTextWriter.cs, XmlWriterTests.cs :
	  Close or avoid XmlTextReader.

svn path=/trunk/mcs/; revision=22053
2004-01-14 08:02:53 +00:00
Atsushi Eno b95124c7fb 2003-12-16 Atsushi Enomoto <[email protected]>
* XmlDeclarationTests.cs : Added InvalidInnerText().
	* XmlDocumentTests.cs : CRLF fix (to LF)
	* XmlWriterTests.cs : tiny fix on WriteNodeFullDocument().
	* XmlValidatingReaderTests.cs : Fixed entity handling check tests.

svn path=/trunk/mcs/; revision=21243
2003-12-16 15:46:53 +00:00
Atsushi Eno 1395cd6eac 2003-11-28 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : Added WriteNodeFullDocument() with
	  encoding specification. Added WriteNodeNonEmptyElement().
	* XmlUrlResolverTests.cs : Added GetEntityWithNonStreamReturnType()
	  and GetEntityWithRelativeFileUri().
	* XmlTextWriterTests.cs : Added some namespace related tests.
	* XmlTextReaderTests.cs : Added char-entity and ReadBase64() tests.
	* XmlNodeTests.cs : GetPrefixOfNamespace() test also for disconnected
	  nodes.
	* XmlElementTests.cs : Added ConstructionAndDefaultAttributes().
	* XmlDeclarationTests.cs : Added InvalidInnerText().
	* XmlAttributeTests.cs : Added CheckPrefixWithNamespace().

svn path=/trunk/mcs/; revision=20590
2003-11-28 16:30:45 +00:00
Atsushi Eno db3d74eeda 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : Added WriteSurrogateCharEntity().

svn path=/trunk/mcs/; revision=18960
2003-10-13 12:08:39 +00:00
Atsushi Eno d34c6ca429 2003-10-13 Atsushi Enomoto <[email protected]>
* XmlElementTests.cs : Added more tests on
	  RemoveDoesNotRemoveDefaultAttributes().
	* XmlNodeTests.cs : Added Normalize(), GetNamespaceOfPrefix() and
	  GetNamespaceOfPrefixNullArg().
	* XmlWriterTests.cs : Added WriteNodeNone().

svn path=/trunk/mcs/; revision=18951
2003-10-13 03:37:42 +00:00
Atsushi Eno df14a8aaf0 2003-05-16 Atsushi Enomoto <[email protected]>
* XmlAttributeTests.cs : added NamespaceAttributes() and WriteTo().
	* XmlDocumentTests.cs : fixed invalid xml of DocumentWithDoctypeDecl()
	  and not well-formed xml of OuterXmlWithDefaultXmlns().
	* XmlElementTests.cs : added IsEmpty(). fixed not well-formed xml of
	  WriteToWithDefaultNamespace().
	* XmlNodeReaderTests.cs : fixed incorrect result expectation of
	  ReadInnerXmlWrongInit().
	* XmlNodeTets.cs : applied USE_VERSION_1_1 for InsertBefore()/-After().
	* XmlReaderCommonTests.cs,
	  XmlTextReaderTests.cs : moved EntityReference() and EntityReference-
	  InsideText() to XmlTextReaderTests.cs, since XmlNodeReader is expected
	  to resolve these entity references.
	* XmlTextWriterTests.cs : removed English-dependent error message check.
	  fixed incorrect state-check ignorant blocks of WriteAttributes ().
	* XmlWriterTests.cs : modified WriteNodeFullDocument() and WriteNode-
	  XmlDecl() as MS.NET results in.

svn path=/trunk/mcs/; revision=14610
2003-05-15 19:09:10 +00:00
Martin Willemoes Hansen ba234c2a4a * Tests inherits from Assertion and Assertion. prefixes removed
svn path=/trunk/mcs/; revision=14558
2003-05-13 20:41:56 +00:00
Atsushi Eno 95ef9ce2ec 2003-04-25 Atsushi Enomoto <[email protected]>
* XmlWriterTests.cs : added some WriteNode() related testcases.

svn path=/trunk/mcs/; revision=13995
2003-04-25 03:17:06 +00:00
Atsushi Eno bef07b2478 2003-04-12 Atsushi Enomoto <[email protected]>
* added this file as a new entry.
	  See ../ChangeLog to find ChangeLog entries before than this day.

svn path=/trunk/mcs/; revision=13549
2003-04-12 13:39:49 +00:00