Author: gert
Date: 2006-11-08 15:05:17 -0500 (Wed, 08 Nov 2006)
New Revision: 67549
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs
Log:
* TextBoxTest.cs: Added test for bug #79851.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2006-11-08 19:53:28 UTC (rev 67548)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2006-11-08 20:05:17 UTC (rev 67549)
@@ -1,3 +1,7 @@
+2006-11-08 Gert Driesen <[EMAIL PROTECTED]>
+
+ * TextBoxTest.cs: Added test for bug #79851.
+
2006-11-07 Gert Driesen <[EMAIL PROTECTED]>
* TabControlTest.cs: Added test for bug #79847.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs
2006-11-08 19:53:28 UTC (rev 67548)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs
2006-11-08 20:05:17 UTC (rev 67549)
@@ -276,5 +276,23 @@
textBox.Undo ();
Assert.AreEqual ("ABCDE", textBox.Text, "#36");
}
+
+ [Test] // bug #79851
+ public void WrappedText ()
+ {
+ string text = "blabla blablabalbalbalbalbalbal blabla
blablabl bal " +
+ "bal bla bal balajkdhfk dskfk ersd dsfjksdhf
sdkfjshd f";
+
+ textBox.Multiline = true;
+ textBox.Size = new Size (30, 168);
+ textBox.Text = text;
+
+ Form form = new Form ();
+ form.Controls.Add (textBox);
+ form.ShowInTaskbar = false;
+ form.Show ();
+
+ Assert.AreEqual (text, textBox.Text);
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches