diff options
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs b/main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs index 60d6e6d1c3..7f39e373c8 100644 --- a/main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Ide.FindInFiles/ColorizationTests.cs @@ -88,5 +88,21 @@ namespace MonoDevelop.Ide.FindInFiles ); Assert.AreEqual ("<span foreground=\"#000000\">ec.Report.Error <span background=\"#FFFFFF\">(</span></span><span foreground=\"#A40000\"><span background=\"#FFFFFF\">29</span></span><span foreground=\"#000000\"><span background=\"#FFFFFF\">,</span> loc, </span><span foreground=\"#A40000\">\"Cannot implicitly convert type `{0}' to `{1}'\"</span><span foreground=\"#000000\">,</span>", result); } + + + + [Test] + public void TestSpanClosingIssue () + { + var result = PangoHelper.ColorMarkupBackground ( + "<span foreground=\"#000000\"><</span><span foreground=\"#204987\">Begin</span><span foreground=\"#000000\">>/*</</span><span foreground=\"#204987\">Begin</span><span foreground=\"#000000\">></span>", + 0, + 17, + new HslColor (1d, 1d, 1d) + ); + Assert.AreEqual ("<span foreground=\"#000000\"><span background=\"#FFFFFF\"><</span></span><span foreground=\"#204987\"><span background=\"#FFFFFF\">Begin</span></span><span foreground=\"#000000\"><span background=\"#FFFFFF\">>/*</</span></span><span foreground=\"#204987\"><span background=\"#FFFFFF\">Begin</span></span><span foreground=\"#000000\"><span background=\"#FFFFFF\">></span></span>", result); + } + + } }
\ No newline at end of file |