diff options
author | Hugh Bellamy <hughbellars@gmail.com> | 2017-11-16 20:57:11 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-11-16 20:57:11 +0300 |
commit | 8a82b292fbe3901e2ed277f2290bb0e41f757e29 (patch) | |
tree | 20abc3e174988be510a44515246291d397a93f28 /mcs | |
parent | 51a8a459066cb202c4ecd07ccec213c1612acd66 (diff) |
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
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |