Author: jpobst
Date: 2008-02-07 14:12:57 -0500 (Thu, 07 Feb 2008)
New Revision: 95179

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:
2008-02-07  Jonathan Pobst  <[EMAIL PROTECTED]>

        * MdiFormTest.cs: Add test for bug #325473.

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-07 18:54:31 UTC (rev 95178)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2008-02-07 19:12:57 UTC (rev 95179)
@@ -1,3 +1,7 @@
+2008-02-07  Jonathan Pobst  <[EMAIL PROTECTED]>
+
+       * MdiFormTest.cs: Add test for bug #325473.
+
 2008-02-06  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * TimerTest.cs: Several asserts in one test had the same name,

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  
    2008-02-07 18:54:31 UTC (rev 95178)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs  
    2008-02-07 19:12:57 UTC (rev 95179)
@@ -343,6 +343,35 @@
                        TearDown ();
                }
                
+               [Test]
+               public void NewFormShouldAlsoBeMaximized ()
+               {
+                       Form parent = new Form ();
+                       
+                       Form child1 = new Form ();
+                       Form child2 = new Form ();
+                       
+                       parent.ShowInTaskbar = false;
+                       parent.IsMdiContainer = true;
+                       parent.ClientSize = new Size (300, 300);
+                       
+                       parent.Show ();
+                       
+                       child1.MdiParent = parent;
+                       child1.Show ();
+                       
+                       child1.WindowState = FormWindowState.Maximized;
+                       
+                       child2.MdiParent = parent;
+                       child2.ClientSize = new Size (100, 100);
+                       child2.Show ();
+
+                       Assert.IsTrue (child2.Width > 200, "Width should be 
maximized");
+                       Assert.IsTrue (child2.Height > 200, "Height should be 
maximized");
+                       
+                       parent.Dispose ();
+               }
+               
                /* These tests are all failing on WinXP with XP Theme. 
                 * offset seems to be 22,22 normally, and 22,29 with XP theme.
                 * Find a way to test this reliably.

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

Reply via email to