From 8a82b292fbe3901e2ed277f2290bb0e41f757e29 Mon Sep 17 00:00:00 2001 From: Hugh Bellamy Date: Thu, 16 Nov 2017 17:57:11 +0000 Subject: Update GdipGetImageDimensions tests to pass against Windows GDI+ (#6008) Make the image height dimension check more relaxed. These fail against windows and cause errors when fixed in mono/libgdiplus#121 --- mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcs/class/System.Drawing') diff --git a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs index 939dbd8fe63..673fd3fa20f 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs @@ -1593,7 +1593,7 @@ namespace MonoTests.System.Drawing { float width, height; Assert.AreEqual (Status.Ok, GDIPlus.GdipGetImageDimension (image, out width, out height), "GdipGetImageDimension"); Assert.AreEqual (12976.6328f, width, 0.001f, "GdipGetImageDimension/Width"); - Assert.AreEqual (17297.9863f, height, 0.001f, "GdipGetImageDimension/Height"); + Assert.AreEqual (17297.9863f, height, 0.02f, "GdipGetImageDimension/Height"); ImageType type; Assert.AreEqual (Status.Ok, GDIPlus.GdipGetImageType (image, out type), "GdipGetImageType"); -- cgit v1.2.3