diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2011-10-27 13:24:57 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2011-10-27 13:25:29 +0400 |
commit | ddb656d91929ca46b3a70df9e7337ca0fcd3c3ba (patch) | |
tree | a101e10aaab41b8aafb9096c5907b8660782a3d1 /main/tests | |
parent | 21b8399101d65db63e1dc75a199f7ea602115280 (diff) |
Fixed "Bug 1700 - Tab in multi-line edit changes messes up the
selection".
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UnitTests/Mono.TextEditor.Tests/EditActionsTest.cs | 16 | ||||
-rw-r--r-- | main/tests/UnitTests/Mono.TextEditor.Tests/ViTests.cs | 1 |
2 files changed, 16 insertions, 1 deletions
diff --git a/main/tests/UnitTests/Mono.TextEditor.Tests/EditActionsTest.cs b/main/tests/UnitTests/Mono.TextEditor.Tests/EditActionsTest.cs index db64ee7a95..2e898a9cfe 100644 --- a/main/tests/UnitTests/Mono.TextEditor.Tests/EditActionsTest.cs +++ b/main/tests/UnitTests/Mono.TextEditor.Tests/EditActionsTest.cs @@ -62,7 +62,21 @@ namespace Mono.TextEditor.Tests Assert.AreEqual ("\n\n\n\t\t\n\n", data.Document.Text); } - + + + /// <summary> + /// Bug 1700 - Tab in multi-line edit changes messes up the selection + /// </summary> + [Test()] + public void TestBug1700 () + { + TextEditorData data = new Mono.TextEditor.TextEditorData (); + data.Document.Text = "123\n123\n123"; + data.MainSelection = new Selection (1, 2, 3, 2, SelectionMode.Block); + MiscActions.InsertTab (data); + + Assert.AreEqual ("1\t23\n1\t23\n1\t23", data.Document.Text); + } } } diff --git a/main/tests/UnitTests/Mono.TextEditor.Tests/ViTests.cs b/main/tests/UnitTests/Mono.TextEditor.Tests/ViTests.cs index eb5a408f58..694b4a2e59 100644 --- a/main/tests/UnitTests/Mono.TextEditor.Tests/ViTests.cs +++ b/main/tests/UnitTests/Mono.TextEditor.Tests/ViTests.cs @@ -136,6 +136,7 @@ qrstu", ccc ccc", mode.Text); } + [Ignore("FixMe")] [Test] public void LineDeletePaste () { |