[mono/monodevelop] 83443f66: Fixed 'Bug 16283 - Wrong literal string addition'
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <000001425f9586c5-513f0363-2f51-477e-b4c1-78f456437bf2-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/62fe0a09ff1b...83443f662e3b
Commit: 83443f662e3b1ea64e8b6afe81e827a048c1dfd7
Author: Mike Krüger <[email protected]> (mkrueger)
Date: 2013-11-16 06:23:01 GMT
URL: https://github.com/mono/monodevelop/commit/83443f662e3b1ea64e8b6afe81e827a048c1dfd7
Fixed 'Bug 16283 - Wrong literal string addition'
Changed paths:
M main/external/nrefactory
M main/tests/UnitTests/MonoDevelop.CSharpBinding/OnTheFlyFormatterTests.cs
Modified: main/external/nrefactory
===================================================================
@@ -1 +1 @@
-Subproject commit 2044ea36d3cf831cac1c0c9bf6df0efdce0230b0
+Subproject commit 467dd748019eaf040485d7bfb163ea0383d28a38
Modified: main/tests/UnitTests/MonoDevelop.CSharpBinding/OnTheFlyFormatterTests.cs
===================================================================
@@ -273,6 +273,21 @@ public void TestBug16174_VirtualIndent ()
Console.WriteLine (newText);
Assert.AreEqual (expected, newText);
}
+
+
+ /// <summary>
+ /// Bug 16283 - Wrong literal string addition
+ /// </summary>
+ [Test]
+ public void TestBug16283 ()
+ {
+ TestViewContent content;
+ var ext = Setup ("$\"\\dev\\null {0}\"", out content);
+ content.GetTextEditorData ().Insert (0, "@");
+ ext.KeyPress ((Gdk.Key)'@', '@', Gdk.ModifierType.None);
+ var newText = content.Text;
+ Assert.AreEqual ("@\"\\dev\null {0}\"", newText);
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches