Author: rolf
Date: 2007-04-24 12:29:51 -0400 (Tue, 24 Apr 2007)
New Revision: 76199

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:
* MdiFormTest.cs: Added tests for #81409.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-04-24 16:07:04 UTC (rev 76198)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-04-24 16:29:51 UTC (rev 76199)
@@ -2,6 +2,10 @@
 
        * MdiFormTest.cs: Added tests for #81409.
 
+2007-04-24  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * MdiFormTest.cs: Added tests for #81409.
+
 2007-04-24  Raja R Harinath  <[EMAIL PROTECTED]>
 
        * BindingNavigatorTest.cs (CheckStandardItems): Avoid use of NUnit

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-04-24 16:07:04 UTC (rev 76198)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ComboBoxTest.cs 
    2007-04-24 16:29:51 UTC (rev 76199)
@@ -58,6 +58,24 @@
                        Thread.CurrentThread.CurrentCulture = _originalCulture;
                }
                
+               [Test]
+               public void ContextMenuTest ()
+               {
+                       ComboBox cmb = new ComboBox ();
+                       ContextMenu cm = new ContextMenu ();
+                       
+                       Assert.IsNull (cmb.ContextMenu, "#1");
+                       cmb.ContextMenu = cm;
+                       Assert.AreSame (cmb.ContextMenu, cm, "#2");
+                       cmb.DropDownStyle = ComboBoxStyle.DropDown;
+                       Assert.AreSame (cmb.ContextMenu, cm, "#3");
+                       cmb.DropDownStyle = ComboBoxStyle.DropDownList;
+                       Assert.AreSame (cmb.ContextMenu, cm, "#4");
+                       cmb.DropDownStyle = ComboBoxStyle.Simple;
+                       Assert.AreSame (cmb.ContextMenu, cm, "#5");
+                       
+               }
+               
                [Test] // bug 80794
                public void DataBindingTest ()
                {

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

Reply via email to