From 8ae29b34dccdbf8df57eeb4c2e78425d80f57690 Mon Sep 17 00:00:00 2001 From: Everaldo Canuto Date: Fri, 1 Jun 2007 18:10:59 +0000 Subject: [PATCH] 2007-05-23 Everaldo Canuto * LabelTest.cs: Fix SizeTest for 2.0 profile since autosize theres diferent behavior on 2.0. svn path=/trunk/mcs/; revision=78445 --- mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog | 5 +++++ .../Managed.Windows.Forms/Test/System.Windows.Forms/LabelTest.cs | 4 ++++ 2 files changed, 9 insertions(+) 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 68da3550fe2..aafb941f0ed 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 @@ +2007-05-23 Everaldo Canuto + + * LabelTest.cs: Fix SizeTest for 2.0 profile since autosize theres + diferent behavior on 2.0. + 2007-06-01 Rolf Bjarne Kvinge * ScrollableControlTest.cs: Add ResizeAnchoredTest. diff --git a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LabelTest.cs b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LabelTest.cs index 817d477704d..3fc9e5e99d7 100644 --- a/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LabelTest.cs +++ b/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/LabelTest.cs @@ -114,7 +114,11 @@ namespace MonoTests.System.Windows.Forms // Height: autosize = false Assert.IsFalse (l1.Height.Equals (l2.Height), "#7"); Assert.IsTrue (l1.Height.Equals (l3.Height), "#8"); +#if NET_2_0 + Assert.IsTrue ((l4.Height > l1.Height), "#9"); +#else Assert.IsTrue (l1.Height.Equals (l4.Height), "#9"); +#endif // Width: autosize = false Assert.IsFalse (l1.Width.Equals (l2.Width), "#10"); -- 2.11.4.GIT