Author: jpobst
Date: 2007-09-27 11:44:58 -0400 (Thu, 27 Sep 2007)
New Revision: 86510
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/RadioButtonTest.cs
Log:
2007-09-27 Jonathan Pobst <[EMAIL PROTECTED]>
* RadioButtonTest.cs: Added test for bug #328672.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-09-27 15:40:26 UTC (rev 86509)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-09-27 15:44:58 UTC (rev 86510)
@@ -1,3 +1,7 @@
+2007-09-27 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * RadioButtonTest.cs: Added test for bug #328672.
+
2007-09-23 Gert Driesen <[EMAIL PROTECTED]>
* DataGridViewTest.cs: Added test for bug #325979. Code formatting.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/RadioButtonTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/RadioButtonTest.cs
2007-09-27 15:40:26 UTC (rev 86509)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/RadioButtonTest.cs
2007-09-27 15:44:58 UTC (rev 86510)
@@ -64,6 +64,25 @@
RadioButton rButton1 = new RadioButton ();
Assert.AreEqual ("System.Windows.Forms.RadioButton,
Checked: False" , rButton1.ToString (), "#9");
}
+
+#if NET_2_0
+ [Test]
+ public void AutoSizeText ()
+ {
+ Form f = new Form ();
+ f.ShowInTaskbar = false;
+
+ RadioButton rb = new RadioButton ();
+ rb.AutoSize = true;
+ rb.Width = 14;
+ f.Controls.Add (rb);
+
+ rb.Text = "Some text that is surely longer than 100
pixels.";
+
+ if (rb.Width < 100)
+ Assert.Fail ("RadioButton did not autosize,
actual: {0}", rb.Width);
+ }
+#endif
}
[TestFixture]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches