Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@@ -90,8 +90,8 @@ namespace MonoTests.System.Xml.Xsl
xslt.Load (new XPathDocument (new XmlTextReader (xsl, XmlNodeType.Document, null)));
}
[Test()]
[Category ("NotWorking")] // it depends on "mcs" existence
[Test]
[Category ("MobileNotWorking")]
public void MsxslTest() {
string _styleSheet = @"
<xslt:stylesheet xmlns:xslt=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""
@@ -388,7 +388,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
StringWriter sw_raw = new StringWriter ();
t.Transform (d, null, sw_raw);
Assert.AreEqual (ref_out, sw_raw.ToString ().Replace ("\r\n", "\n"));
Assert.AreEqual (ref_out.Replace ("\r\n", "\n"), sw_raw.ToString ().Replace ("\r\n", "\n"));
}
// http://support.microsoft.com/default.aspx?scid=kb;en-us;829014
@@ -1053,7 +1053,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
[Category ("NotWorking")] // bug #77081: mono does not output newline and indentation for non-html elements
public void Output_Indent_Html_DocType ()
{
XsltArgumentList xsltArgs = new XsltArgumentList ();
@@ -1092,7 +1091,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <else>{0}" +
" </else>{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#1");
"</test>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@@ -1120,7 +1119,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <else>{0}" +
" </else>{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#3");
"</test>", end_of_line), sw.ToString (), "#3");
}
[Test]
@@ -1186,7 +1185,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
[Category ("NotWorking")] // bug #77081: mono does not output newline and indentation for non-html elements
public void Output_Indent_Html ()
{
XsltArgumentList xsltArgs = new XsltArgumentList ();
@@ -1240,7 +1238,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" </whatever>{0}" +
" </p>{0}" +
" </body>{0}" +
"</html>", Environment.NewLine), sw.ToString (), "#1");
"</html>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@@ -1276,7 +1274,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" </whatever>{0}" +
" </p>{0}" +
" </body>{0}" +
"</html>", Environment.NewLine), sw.ToString (), "#3");
"</html>", end_of_line), sw.ToString (), "#3");
}
[Test]
@@ -2303,8 +2301,7 @@ NO
}
[Test] // reverse case of #349375
[Category ("NotWorking")]
// [Category ("NotDotNet")]
[Category ("MobileNotWorking")]
public void PreserveWhitespace2 ()
{
XslCompiledTransform xslt = new XslCompiledTransform ();
@@ -2388,7 +2385,7 @@ NO
}
[Test]
[Category ("NotWorking")] // FIXME: SRE related regression
[Category ("MobileNotWorking")]
public void Bug487065 ()
{
using (XmlReader input = GetInput ()) {