diff options
author | Mike Krüger <mkrueger@novell.com> | 2011-05-09 10:22:04 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2011-05-09 10:22:04 +0400 |
commit | a5fe514eb376f851f163b864b5e2ded7e7372be0 (patch) | |
tree | 3773ee3bbdc5a402493b9790226cb5dcc2ae8258 /main/tests | |
parent | 64471b02624723fe3c06b945fddea3d349a07bee (diff) |
Fixed text editor unit tests.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/Mono.TextEditor.Tests/SyntaxHighlightingTests.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/tests/UnitTests/Mono.TextEditor.Tests/SyntaxHighlightingTests.cs b/main/tests/UnitTests/Mono.TextEditor.Tests/SyntaxHighlightingTests.cs index 73fbc6a8ca..a109fb0522 100644 --- a/main/tests/UnitTests/Mono.TextEditor.Tests/SyntaxHighlightingTests.cs +++ b/main/tests/UnitTests/Mono.TextEditor.Tests/SyntaxHighlightingTests.cs @@ -62,7 +62,7 @@ namespace Mono.TextEditor.Tests public void TestSpans () { TestOutput ("/* TestMe */", - "<span foreground=\"#4E9A06\">/* TestMe */</span>"); + "<span foreground=\"#4D9A06\">/* TestMe */</span>"); } [Test] @@ -97,13 +97,13 @@ namespace Mono.TextEditor.Tests public void TestCDATASection () { string markup = GetMarkup ("<![CDATA[ test ]]>", "application/xml"); - if (markup != "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4E9A06\"> test</span><span foreground=\"#A40000\" weight=\"bold\"> ]]></span>" && - markup != "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4E9A06\"> test </span><span foreground=\"#A40000\" weight=\"bold\">]]></span>") { + if (markup != "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4D9A06\"> test</span><span foreground=\"#A40000\" weight=\"bold\"> ]]></span>" && + markup != "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4D9A06\"> test </span><span foreground=\"#A40000\" weight=\"bold\">]]></span>") { Assert.Fail ("CDATA markup invalid:" + markup); } TestOutput ("<![CDATA[ test]]>", - "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4E9A06\"> test</span><span foreground=\"#A40000\" weight=\"bold\">]]></span>", + "<span foreground=\"#A40000\" weight=\"bold\"><![CDATA[</span><span foreground=\"#4D9A06\"> test</span><span foreground=\"#A40000\" weight=\"bold\">]]></span>", "application/xml"); } |