Author: gert
Date: 2007-10-05 11:38:52 -0400 (Fri, 05 Oct 2007)
New Revision: 86991

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs
Log:
* ComboBoxTest.cs: Added test for bug #331144.


Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-10-05 15:12:28 UTC (rev 86990)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-10-05 15:38:52 UTC (rev 86991)
@@ -1,3 +1,7 @@
+2007-10-05  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * ComboBoxTest.cs: Added test for bug #331144.
+
 2007-10-04  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
        * TreeViewEventsTest.cs: New file. Tests for TreeView events.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs 
    2007-10-05 15:12:28 UTC (rev 86990)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs 
    2007-10-05 15:38:52 UTC (rev 86991)
@@ -61,6 +61,26 @@
                        Thread.CurrentThread.CurrentCulture = _originalCulture;
                }
 
+               [Test] // bug #331144
+               [Category ("NotWorking")]
+               public void DropDownStyle ()
+               {
+                       ComboBox comboBox = new ComboBox ();
+                       comboBox.Items.Add ("abc");
+
+                       Form form = new Form ();
+                       form.Controls.Add (comboBox);
+                       form.Show ();
+
+                       Assert.AreEqual (ComboBoxStyle.DropDown, 
comboBox.DropDownStyle, "#1");
+                       comboBox.DropDownStyle = ComboBoxStyle.Simple;
+                       Assert.AreEqual (ComboBoxStyle.Simple, 
comboBox.DropDownStyle, "#2");
+                       comboBox.DropDownStyle = ComboBoxStyle.DropDown;
+                       Assert.AreEqual (ComboBoxStyle.DropDown, 
comboBox.DropDownStyle, "#3");
+
+                       form.Dispose ();
+               }
+
                [Test] // bug 81610
                [Category ("NotWorking")]
                public void InitialBoundValue ()

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

Reply via email to