Remove invalid tests for image palettes in GdiPlusTest (#5671)
authorHugh Bellamy <hughbellars@gmail.com>
Mon, 2 Oct 2017 00:28:25 +0000 (01:28 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 2 Oct 2017 00:28:25 +0000 (02:28 +0200)
C.r. https://github.com/mono/libgdiplus/pull/112

mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs

index 958aa0bb31907f87a009abc73daa667031716b1e..4e6c25725298c8f808a2ac4720fcbd63a8c4dece 100644 (file)
@@ -864,14 +864,6 @@ namespace MonoTests.System.Drawing {
                                        Assert.AreEqual (Status.InvalidParameter, GDIPlus.GdipSetImagePalette (IntPtr.Zero, palette), "GdipSetImagePalette(null,palette)");
                                        Assert.AreEqual (Status.InvalidParameter, GDIPlus.GdipSetImagePalette (bitmap, IntPtr.Zero), "GdipSetImagePalette(bitmap,null)");
                                        Assert.AreEqual (Status.Ok, GDIPlus.GdipSetImagePalette (bitmap, palette), "GdipSetImagePalette");
-
-                                       // change palette to 0 entries
-                                       int flags = Marshal.ReadInt32 (palette);
-                                       Marshal.WriteInt64 (palette, flags << 32);
-                                       Assert.AreEqual (Status.Ok, GDIPlus.GdipSetImagePalette (bitmap, palette), "GdipSetImagePalette/Empty");
-
-                                       Assert.AreEqual (Status.Ok, GDIPlus.GdipGetImagePaletteSize (bitmap, out size), "GdipGetImagePaletteSize/Empty");
-                                       Assert.AreEqual (8, size, "size");
                                }
                                finally {
                                        Marshal.FreeHGlobal (palette);