diff options
author | sepidehMS <sekho@microsoft.com> | 2016-12-29 01:47:03 +0300 |
---|---|---|
committer | sepidehMS <sekho@microsoft.com> | 2016-12-29 02:22:16 +0300 |
commit | 118962b93a6b51540e8c9b7f7d1df44c4a0c7f00 (patch) | |
tree | 79004ed5d8c0ab89ab3e1789946d426caff2f49a /src/System.Private.Xml/tests/Xslt | |
parent | 3d6c09a9ac0b7f32964820334f00edc7fbec1e91 (diff) |
Address feedback
Diffstat (limited to 'src/System.Private.Xml/tests/Xslt')
5 files changed, 21 insertions, 20 deletions
diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs index 933a02748c..801828a959 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs @@ -153,7 +153,7 @@ namespace System.Xml.Tests string charsToChooseFrom = isValidChar ? UnicodeCharHelper.GetValidCharacters(charType) : UnicodeCharHelper.GetInvalidCharacters(charType); Assert.True(charsToChooseFrom.Length > 0); - foreach (bool enableDebug in new bool[] { /*true,*/ false }) //ActiveIssue(10023) + foreach (bool enableDebug in new bool[] { /*true,*/ false }) // XSLT debugging not supported in Core { XslCompiledTransform transf = new XslCompiledTransform(enableDebug); using (XmlReader r = XmlReader.Create(new StringReader(createElementsXsltAndXpath))) transf.Load(r); @@ -217,7 +217,7 @@ namespace System.Xml.Tests string charsToChooseFrom = isValidChar ? UnicodeCharHelper.GetValidCharacters(charType) : UnicodeCharHelper.GetInvalidCharacters(charType); Assert.True(charsToChooseFrom.Length > 0); - foreach (bool enableDebug in new bool[] { /*true,*/ false }) //ActiveIssue(10023) + foreach (bool enableDebug in new bool[] { /*true,*/ false }) // XSLT debugging not supported in Core { foreach (string name in FuzzNames(!isValidChar, charType, numOfRepeat)) { diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs index 0222a246f9..201d4a7d97 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs @@ -573,7 +573,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver3(object param, XslInputType xslInputType, ReaderType readerType, OutputType outputType, NavType navType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string Baseline = Path.Combine("baseline", (string)param); @@ -606,7 +606,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver7(XslInputType xslInputType, ReaderType readerType, OutputType outputType, NavType navType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result>123</result>"; @@ -2450,7 +2450,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver2(object param, XslInputType xslInputType, ReaderType readerType, OutputType outputType, NavType navType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); // "xmlResolver_document_function.xsl" contains // <xsl:for-each select="document('xmlResolver_document_function.xml')//elem"> @@ -2485,7 +2485,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver3(object param, XslInputType xslInputType, ReaderType readerType, OutputType outputType, NavType navType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); // "xmlResolver_document_function.xsl" contains // <xsl:for-each select="document('xmlResolver_document_function.xml')//elem"> @@ -2519,7 +2519,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver5(XslInputType xslInputType, ReaderType readerType, OutputType outputType, NavType navType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result>123</result>"; @@ -3004,7 +3004,7 @@ namespace System.Xml.Tests [Theory] public void TransformStrStrResolver2(XslInputType xslInputType, ReaderType readerType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><elem>1</elem><elem>2</elem><elem>3</elem></result>"; @@ -3032,7 +3032,7 @@ namespace System.Xml.Tests [Theory] public void TransformStrStrResolver3(object param, XslInputType xslInputType, ReaderType readerType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); // "xmlResolver_document_function.xsl" contains // <xsl:for-each select="document('xmlResolver_document_function.xml')//elem"> @@ -3091,7 +3091,7 @@ namespace System.Xml.Tests [Theory] public void ValidCases_ExternalURI(object param0, object param1, object param2, object param3, object param4, object param5) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); ValidCases(param0, param1, param2, param3, param4, param5); } diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs index c748a07cff..a15b046c08 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs @@ -101,7 +101,7 @@ namespace System.Xml.Tests [Theory] public void proc2() { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); Load("QFE505_multith_customer_repro_with_or_expr.xsl", "QFE505_multith_customer_repro_with_or_expr.xml"); @@ -400,7 +400,7 @@ namespace System.Xml.Tests [Theory] public void proc2() { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); Load("QFE505_multith_customer_repro_with_or_expr.xsl", "QFE505_multith_customer_repro_with_or_expr.xml"); diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs index 530d7e855c..69265ea40a 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs @@ -84,7 +84,7 @@ namespace System.Xml.Tests [Theory] public void XsltSettings1_1_ExternalURI(object param0, object param1, object param2, object param3, object param4) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); XsltSettings1_1(param0, param1, param2, param3, param4); } @@ -94,7 +94,7 @@ namespace System.Xml.Tests [Theory] public void XsltSettings1_2_ExternalURI(object param0, object param1, object param2, object param3, object param4, object param5, object param6) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); XsltSettings1_2(param0, param1, param2, param3, param4, param5, param6); } diff --git a/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs b/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs index 343eea04af..bab4a2c646 100644 --- a/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs +++ b/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs @@ -1,3 +1,4 @@ + // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -383,7 +384,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver1(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; @@ -797,7 +798,7 @@ namespace System.Xml.Tests [Theory] public void LoadGeneric7(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; @@ -835,7 +836,7 @@ namespace System.Xml.Tests [Theory] public void LoadGeneric9(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; @@ -1231,7 +1232,7 @@ namespace System.Xml.Tests [Theory] public void LoadGeneric9(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; @@ -2171,7 +2172,7 @@ namespace System.Xml.Tests [Theory] public void XmlResolver1(InputType inputType, ReaderType readerType, TransformType transformType, DocType docType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; @@ -2742,7 +2743,7 @@ namespace System.Xml.Tests [Theory] public void TransformStrStrResolver1(InputType inputType, ReaderType readerType) { - AppContext.SetSwitch("Switch.System.Xml.DontProhibitDefaultResolver", true); + AppContext.SetSwitch("Switch.System.Xml.AllowDefaultResolver", true); string expected = @"<?xml version=""1.0"" encoding=""utf-8""?><result><fruit>Apple</fruit><fruit>orange</fruit></result>"; String szFullFilename = FullFilePath("fruits.xml"); |