diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-28 04:23:38 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-01-28 04:25:55 +0300 |
commit | d61e7aca9a4c858c30d6512a7dc8a86f307683a7 (patch) | |
tree | 0d3fab9c006247feda1b6e1633b895bc0f6e43a1 /mcs/class/System.Web.DynamicData | |
parent | 9bee02a3ff15045afbbd8a2f9d96830acb82d7e4 (diff) |
[bcl] Update tests that failed when .cs file contained CRLF
Most of them used multiline C# string literals which
means they contained the line ending character of the file.
Updated to make the tests resilient to having CRLF instead of LF.
Some of the mcs tests used a checksum to compare files,
ensured those are checked out using LF.
Diffstat (limited to 'mcs/class/System.Web.DynamicData')
-rw-r--r-- | mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicControlTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicControlTest.cs b/mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicControlTest.cs index 7f2d214ea49..5656080a73d 100644 --- a/mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicControlTest.cs +++ b/mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData/DynamicControlTest.cs @@ -254,7 +254,7 @@ namespace MonoTests.System.Web.DynamicData string html = @"<span class=""activeCssClass""> <span class=""field"">Active</span>:"; - Assert.IsTrue (p.IndexOf (html) != -1, "#Y1"); + Assert.IsTrue (p.IndexOf (html.Replace ("\r\n", "\n")) != -1, "#Y1"); } static void CssClass_OnLoad (Page p) |