From: Jonathan Pobst Date: Wed, 23 Jan 2008 19:18:34 +0000 (-0000) Subject: 2008-01-23 Jonathan Pobst X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=d2836071df61102ec0e3a6040f998df042d44f04;p=mono.git 2008-01-23 Jonathan Pobst * TableLayoutTest.cs: Set ClientSize to a known size to make Bug355408 () WM independent. svn path=/trunk/mcs/; revision=93692 --- diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog index 6fa5caa7d15..2c08843f3d7 100644 --- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog +++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog @@ -1,3 +1,8 @@ +2008-01-23 Jonathan Pobst + + * TableLayoutTest.cs: Set ClientSize to a known size to + make Bug355408 () WM independent. + 2008-01-23 Jonathan Pobst * TableLayoutTest.cs: Add test for bug #355408. diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TableLayoutTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TableLayoutTest.cs index f0c6e7b3ef7..7ac80dbd317 100644 --- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TableLayoutTest.cs +++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/TableLayoutTest.cs @@ -1295,7 +1295,8 @@ namespace MonoTests.System.Windows.Forms public void Bug355408 () { Form f = new Form (); - + f.ClientSize = new Size (300, 300); + TableLayoutPanel tlp = new TableLayoutPanel (); tlp.Dock = DockStyle.Fill; tlp.RowCount = 2; @@ -1318,7 +1319,7 @@ namespace MonoTests.System.Windows.Forms Assert.AreEqual (new Rectangle (3, 3, 75, 23), b1.Bounds, "A1"); Assert.AreEqual (new Rectangle (84, 3, 75, 23), b2.Bounds, "A2"); - Assert.AreEqual (new Rectangle (3, 32, 278, 229), b3.Bounds, "A3"); + Assert.AreEqual (new Rectangle (3, 32, 294, 265), b3.Bounds, "A3"); f.Close (); f.Dispose ();