[mono/monodevelop] b80a3709: [UnitTests] Fixed some failing tests on windows.
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141f81c30f4-cc16d1d3-a238-4ffe-8bb0-38f0150d8c6e-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/483a457975de...b80a37096984
Commit: b80a370969847f3879bd685ada587f338a28d3de
Author: Mike Krüger <[email protected]> (mkrueger)
Date: 2013-10-27 04:09:55 GMT
URL: https://github.com/mono/monodevelop/commit/b80a370969847f3879bd685ada587f338a28d3de
[UnitTests] Fixed some failing tests on windows.
Changed paths:
M main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/ClipboardTests.cs
M main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs
M main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs
Modified: main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/ClipboardTests.cs
===================================================================
@@ -88,6 +88,7 @@ public void TestUndoSteps ()
public void TestPasteDoesntInsertVirtualIndent ()
{
var data = VirtualIndentModeTests.CreateData ("");
+ data.Options.DefaultEolMarker = "\n";
data.Caret.Location = new DocumentLocation (1, data.IndentationTracker.GetVirtualIndentationColumn (1, 1));
var clipboard = Clipboard.Get (Mono.TextEditor.ClipboardActions.CopyOperation.CLIPBOARD_ATOM);
clipboard.Text = "\n\n";
Modified: main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/HtmlWriterTests.cs
===================================================================
@@ -36,6 +36,8 @@ public class HtmlWriterTests : TextEditorTestBase
[Test]
public void TestSimpleCSharpHtml ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create ("class Foo {}");
data.ColorStyle = SyntaxModeService.GetColorStyle ("TangoLight");
data.Document.SyntaxMode = SyntaxModeService.GetSyntaxMode (data.Document, "text/x-csharp");
@@ -57,6 +59,8 @@ public void TestSimpleCSharpHtml ()
[Test]
public void TestXml ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create (
@"<foo
attr1 = ""1""
Modified: main/src/core/MonoDevelop.TextEditor.Tests/Mono.TextEditor.Tests/RtfWriterTests.cs
===================================================================
@@ -36,6 +36,8 @@ public class RtfWriterTests : TextEditorTestBase
[Test]
public void TestSimpleCSharpRtf ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create ("class Foo {}");
data.ColorStyle = SyntaxModeService.GetColorStyle ("TangoLight");
data.Document.SyntaxMode = SyntaxModeService.GetSyntaxMode (data.Document, "text/x-csharp");
@@ -58,6 +60,8 @@ public void TestSimpleCSharpRtf ()
[Test]
public void TestBug5628 ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create ("class Foo {}");
data.ColorStyle = SyntaxModeService.GetColorStyle ("TangoLight");
string generatedRtf = RtfWriter.GenerateRtf (data);
@@ -79,6 +83,8 @@ public void TestBug5628 ()
[Test]
public void TestBug7386 ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create ("✔");
data.ColorStyle = SyntaxModeService.GetColorStyle ("TangoLight");
string generatedRtf = RtfWriter.GenerateRtf (data);
@@ -98,6 +104,8 @@ public void TestBug7386 ()
[Test]
public void TestXml ()
{
+ if (Platform.IsWindows)
+ return;
var data = Create (
@"<foo
attr1 = ""1""
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches