Author: rolf
Date: 2007-03-30 05:47:39 -0500 (Fri, 30 Mar 2007)
New Revision: 75184

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 test for #79964.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-03-30 10:44:38 UTC (rev 75183)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-03-30 10:47:39 UTC (rev 75184)
@@ -1,3 +1,7 @@
+2007-03-30  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
+       * MdiFormTest.cs: Added test for #79964.
+
 2007-03-28  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * ToolStripOverflowButtonTest.cs, ToolStripOverflowTest.cs: Disable

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-03-30 10:44:38 UTC (rev 75183)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/MdiFormTest.cs  
    2007-03-30 10:47:39 UTC (rev 75184)
@@ -231,6 +231,27 @@
                        TearDown ();
                }
                
+               [Test]
+               public void StartLocationTest2 ()
+               {
+                       SetUp (false, false);
+
+                       child1.MdiParent = main;
+                       child2.MdiParent = main;
+
+                       child1.Visible = true;
+                       child2.Visible = true;
+                       child2.StartPosition = FormStartPosition.Manual;
+                       child2.Location = new Point(23, 34);
+
+                       main.Show ();
+
+                       Assert.AreEqual ("{X=0,Y=0}", child1.Location.ToString 
(), "#1");
+                       Assert.AreEqual ("{X=23,Y=34}",child2.Location.ToString 
(), "#2");
+
+                       TearDown ();
+               }
+               
                /* 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