Author: jpobst
Date: 2007-09-11 13:23:49 -0400 (Tue, 11 Sep 2007)
New Revision: 85648

Modified:
   trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
Log:
2007-09-11  Jonathan Pobst  <[EMAIL PROTECTED]>

        * ControlTest.cs: Add test for bug #82748.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-09-11 17:10:47 UTC (rev 85647)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog   
2007-09-11 17:23:49 UTC (rev 85648)
@@ -1,5 +1,9 @@
 2007-09-11  Jonathan Pobst  <[EMAIL PROTECTED]>
 
+       * ControlTest.cs: Add test for bug #82748.
+
+2007-09-11  Jonathan Pobst  <[EMAIL PROTECTED]>
+
        * ScrollBarTest.cs: Add test demonstrating behavior when Maximum
        is set lower than Value.
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs  
    2007-09-11 17:10:47 UTC (rev 85647)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlTest.cs  
    2007-09-11 17:23:49 UTC (rev 85648)
@@ -157,6 +157,31 @@
 #endif
                
                [Test]
+               public void Bug82748 ()
+               {
+                       Form f = new Form ();
+                       f.ShowInTaskbar = false;
+                       
+                       Control c = new Control ();
+                       c.Size = new Size (100, 100);
+                       
+                       Control c2 = new Control ();
+                       c2.Size = c.Size;
+                       c2.Controls.Add (c);
+                       
+                       c.Anchor = AnchorStyles.Right;
+                       
+                       f.Controls.Add (c);
+                       
+                       f.Show ();
+                       
+                       Assert.AreEqual (0, c.Left, "A1");
+                       
+                       f.Close ();
+                       f.Dispose ();
+               }
+               
+               [Test]
                public void InvokeTestParentHandle ()
                {
                        Control child, parent;

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

Reply via email to