Parcourir la source

* ToobarTest.cs: Comment DPI dependent asserts in ButtonSize test.

2007-01-23  Everaldo Canuto  <[email protected]>


svn path=/trunk/mcs/; revision=71610
Everaldo Canuto il y a 19 ans
Parent
commit
99940647f5

+ 4 - 0
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog

@@ -1,3 +1,7 @@
+2007-01-23  Everaldo Canuto  <[email protected]>
+
+	* ToobarTest.cs: Comment DPI dependent asserts in ButtonSize test. 
+
 2007-01-23  Everaldo Canuto  <[email protected]>
 
 	* ToobarTest.cs: TooBar.ButtonSize tests added. 

+ 4 - 4
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs

@@ -158,14 +158,14 @@ namespace MonoTests.System.Windows.Forms
 			form.Show ();
 
 			// We cannot determine exact size as it depends of font size
-			Assert.IsTrue (toolBar.ButtonSize.Width < 39, "#3");
-			Assert.IsTrue (toolBar.ButtonSize.Height < 36, "#4");
+			//Assert.IsTrue (toolBar.ButtonSize.Width < 39, "#3");
+			//Assert.IsTrue (toolBar.ButtonSize.Height < 36, "#4");
 			
 			toolBar.Buttons.Add (new ToolBarButton ("Teste"));
 			
 			// We cannot determine exact size as it depends of font size
-			Assert.IsTrue (toolBar.ButtonSize.Width >= 39, "#5");
-			Assert.IsTrue (toolBar.ButtonSize.Height >= 36, "#6");
+			//Assert.IsTrue (toolBar.ButtonSize.Width >= 39, "#5");
+			//Assert.IsTrue (toolBar.ButtonSize.Height >= 36, "#6");
 		}
 	}