Author: rolf
Date: 2007-04-03 04:56:07 -0400 (Tue, 03 Apr 2007)
New Revision: 75331

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
Log:
* MdiFormTest.cs: Added ChangeClientSizeTest for bug 80995.

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-03 08:45:09 UTC (rev 75330)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-04-03 08:56:07 UTC (rev 75331)
@@ -1,3 +1,7 @@
+2007-04-03  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * MdiFormTest.cs: Added ChangeClientSizeTest for bug 80995.
+
 2007-04-02  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
        * ContainerControlTest.cs: Add RemoveActiveControlTest

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs  
    2007-04-03 08:45:09 UTC (rev 75330)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs  
    2007-04-03 08:56:07 UTC (rev 75331)
@@ -1334,5 +1334,18 @@
                                main.Close();
                        }
                }
+               
+               [Test] // bug 80995
+               public void ChangeClientSizeTest ()
+               {
+                       SetUp (false, false, false);
+                       child1.ClientSize = new Size (224, 37);
+                       child1.MdiParent = main;
+                       Assert.AreEqual ("{Width=224, Height=37}", 
child1.ClientSize.ToString (), "#01");
+                       child1.Show ();
+                       Assert.AreEqual ("{Width=224, Height=37}", 
child1.ClientSize.ToString (), "#02");
+                       main.Show ();
+                       Assert.AreEqual ("{Width=224, Height=37}", 
child1.ClientSize.ToString (), "#03");
+               }
        }
 }

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

Reply via email to