Author: lpage
Date: 2008-02-03 06:17:19 -0500 (Sun, 03 Feb 2008)
New Revision: 94673

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:
2008-02-03  Luke Page   <[EMAIL PROTECTED]>

        * TextBoxTest.cs: Added test from James Purcell for bug #358229 to
        test FixedHeight control style when multiline changed.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2008-02-03 10:40:39 UTC (rev 94672)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2008-02-03 11:17:19 UTC (rev 94673)
@@ -1,3 +1,8 @@
+2008-02-03  Luke Page   <[EMAIL PROTECTED]>
+
+       * TextBoxTest.cs: Added test from James Purcell for bug #358229 to
+       test FixedHeight control style when multiline changed.
+
 2008-02-01  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * ListBoxTest.cs: Disable test that is default font dependent.

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  
    2008-02-03 10:40:39 UTC (rev 94672)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TextBoxTest.cs  
    2008-02-03 11:17:19 UTC (rev 94673)
@@ -790,6 +790,18 @@
                        tb.BorderStyle = BorderStyle.None;
                        Assert.IsTrue (eventLogger.EventRaised 
("BorderStyleChanged"));
                }
+
+               [Test]
+               public void FixedHeightControlStyle ()
+               {
+                       TextBoxPublic t = new TextBoxPublic ();
+
+                       t.Multiline = true;
+                       Assert.IsFalse (t.GetStylePublic 
(ControlStyles.FixedHeight), "A1");
+
+                       t.Multiline = false;
+                       Assert.IsTrue (t.GetStylePublic 
(ControlStyles.FixedHeight), "A2");
+               }
                
                [Test]
                public void ModifiedTest ()
@@ -849,5 +861,12 @@
                                return base.IsInputChar (charCode);
                        }
                }
+
+               private class TextBoxPublic : TextBox
+               {
+                       public bool GetStylePublic (ControlStyles flag) {
+                               return GetStyle (flag);
+                       }
+               }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to