Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2013-09-08 20:09:40 +0400
committerMike Krüger <mkrueger@xamarin.com>2013-09-08 20:09:40 +0400
commit64b58486a7b9697862dd93763002ce61d544bd48 (patch)
tree05f30f3b23cabf652ea21d83fc0db0be113ece00 /main/src/core/MonoDevelop.TextEditor.Tests
parent644eaf7125100019b3d28ad5ab9b29297859df8d (diff)
[TextEditor] Reactivated html/rtf writer unit tests.
Diffstat (limited to 'main/src/core/MonoDevelop.TextEditor.Tests')
-rw-r--r--main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs12
-rw-r--r--main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs11
2 files changed, 12 insertions, 11 deletions
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs
index 27567b47e2..4d4c065ec6 100644
--- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs
+++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs
@@ -30,7 +30,6 @@ using Mono.TextEditor.Highlighting;
namespace Mono.TextEditor.Tests
{
- [Ignore]
[TestFixture]
public class HtmlWriterTests : TextEditorTestBase
{
@@ -50,7 +49,7 @@ namespace Mono.TextEditor.Tests
</HEAD>
<BODY>
<FONT face = 'Mono'>
-<SPAN style = 'color:#009695;' >class</SPAN><SPAN style = 'color:#444444;' >&nbsp;Foo&nbsp;</SPAN><SPAN style = 'color:#444444;' >{}</SPAN></FONT>
+<SPAN style='color:#009695;'>class</SPAN><SPAN style='color:#444444;'>&nbsp;Foo&nbsp;</SPAN><SPAN style='color:#444444;'>{}</SPAN></FONT>
</BODY></HTML>
", generatedHtml);
}
@@ -66,6 +65,7 @@ namespace Mono.TextEditor.Tests
data.ColorStyle = SyntaxModeService.GetColorStyle ("TangoLight");
data.Document.SyntaxMode = SyntaxModeService.GetSyntaxMode (data.Document, "application/xml");
string generatedHtml = HtmlWriter.GenerateHtml (data);
+ Console.WriteLine (generatedHtml);
Assert.AreEqual (
@"<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">
<HTML>
@@ -75,10 +75,10 @@ namespace Mono.TextEditor.Tests
</HEAD>
<BODY>
<FONT face = 'Mono'>
-<SPAN style = 'color:#444444;' >&lt;</SPAN><SPAN style = 'color:#3364a4;' >foo</SPAN><BR>
-<SPAN style = 'color:#3364a4;' >&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style = 'color:#444444;' >attr1</SPAN><SPAN style = 'color:#444444;' >&nbsp;=</SPAN><SPAN style = 'color:#3364a4;' >&nbsp;</SPAN><SPAN style = 'color:#f57d00;' >&quot;</SPAN><SPAN style = 'color:#f57d00;' >1</SPAN><SPAN style = 'color:#f57d00;' >&quot;</SPAN><BR>
-<SPAN style = 'color:#3364a4;' >&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style = 'color:#444444;' >attr2</SPAN><SPAN style = 'color:#444444;' >&nbsp;=</SPAN><SPAN style = 'color:#3364a4;' >&nbsp;</SPAN><SPAN style = 'color:#f57d00;' >&quot;</SPAN><SPAN style = 'color:#f57d00;' >2</SPAN><SPAN style = 'color:#f57d00;' >&quot;</SPAN><BR>
-<SPAN style = 'color:#444444;' >/</SPAN><SPAN style = 'color:#444444;' >&gt;</SPAN></FONT>
+<SPAN style='color:#444444;'>&lt;</SPAN><SPAN style='color:#3364a4;'>foo</SPAN><BR>
+<SPAN style='color:#3364a4;'>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style='color:#444444;'>attr1</SPAN><SPAN style='color:#444444;'>&nbsp;=</SPAN><SPAN style='color:#3364a4;'>&nbsp;</SPAN><SPAN style='color:#f57d00;'>&quot;</SPAN><SPAN style='color:#f57d00;'>1</SPAN><SPAN style='color:#f57d00;'>&quot;</SPAN><BR>
+<SPAN style='color:#3364a4;'>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style='color:#444444;'>attr2</SPAN><SPAN style='color:#444444;'>&nbsp;=</SPAN><SPAN style='color:#3364a4;'>&nbsp;</SPAN><SPAN style='color:#f57d00;'>&quot;</SPAN><SPAN style='color:#f57d00;'>2</SPAN><SPAN style='color:#f57d00;'>&quot;</SPAN><BR>
+<SPAN style='color:#444444;'>/</SPAN><SPAN style='color:#444444;'>&gt;</SPAN></FONT>
</BODY></HTML>
"
, generatedHtml);
diff --git a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs
index fc23ebf192..1b191923af 100644
--- a/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs
+++ b/main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs
@@ -30,7 +30,6 @@ using Mono.TextEditor.Highlighting;
namespace Mono.TextEditor.Tests
{
- [Ignore]
[TestFixture]
public class RtfWriterTests : TextEditorTestBase
{
@@ -67,10 +66,11 @@ namespace Mono.TextEditor.Tests
{\fonttbl
{\f0\fnil\fprq1\fcharset128 Mono;}
}
-{\colortbl ;}\viewkind4\uc1\pard
+{\colortbl ;\red68\green68\blue68;}\viewkind4\uc1\pard
\f0
\fs20\cf1
-class Foo \{\}}", generatedRtf);
+\cf1 class Foo \{\}\line
+}", generatedRtf);
}
/// <summary>
@@ -87,10 +87,11 @@ class Foo \{\}}", generatedRtf);
{\fonttbl
{\f0\fnil\fprq1\fcharset128 Mono;}
}
-{\colortbl ;}\viewkind4\uc1\pard
+{\colortbl ;\red68\green68\blue68;}\viewkind4\uc1\pard
\f0
\fs20\cf1
-\uc1\u10004*}", generatedRtf);
+\cf1 \uc1\u10004*\line
+}", generatedRtf);
}
[Test]