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-10-14 10:18:57 +0400
committerMike Krüger <mkrueger@xamarin.com>2013-10-14 10:18:57 +0400
commitba9ba3ee2b94fe4e0d7e7bb013353b088ab44eb4 (patch)
tree48aa41a1b20d266535c381f8a1004f944b5866be /main/tests/UnitTests/MonoDevelop.CSharpBinding
parentef18fb96dad5108083199461a9a1e0ae36d28485 (diff)
Fixed 'Bug 15335 - In a multiline comment, pressing Enter jumps way ahead'
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.CSharpBinding')
-rw-r--r--main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
index 009224a2ae..35718b8a0c 100644
--- a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CSharpTextEditorIndentationTests.cs
@@ -358,5 +358,18 @@ namespace MonoDevelop.CSharpBinding
CheckOutput (data, "\tfirst\n\t$third");
}
+
+
+ /// <summary>
+ /// Bug 15335 - In a multiline comment, pressing Enter jumps way ahead
+ /// </summary>
+ [Test]
+ public void TestBug15335 ()
+ {
+ var data = Create ("namespace Foo\n{\n\tpublic class Bar\n\t{\n\t\tvoid Test()\r\n\t\t{\r\n\t\t\t/* foo$\n\t\t}\n\t}\n}\n");
+ MiscActions.InsertNewLine (data);
+
+ CheckOutput (data, "namespace aFoo\n{\n\tpublic class Bar\n\t{\n\t\tvoid Test()\r\n\t\t{\r\n\t\t\t/* foo\n\t\t\t * $\n\t\t}\n\t}\n}\n");
+ }
}
}