diff options
author | Hugh Bellamy <hughbellars@gmail.com> | 2017-10-02 03:28:25 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-10-02 03:28:25 +0300 |
commit | 5825342717cb2f16c819457a2b39bc45f69fe16c (patch) | |
tree | e3997ec7fd1edf77298a6f712beda417aadfc0c3 /mcs/class/System.Drawing | |
parent | 813c1308fe53d16b419d22777f4d1124f06e7c9e (diff) |
Remove invalid tests for image palettes in GdiPlusTest (#5671)
C.r. https://github.com/mono/libgdiplus/pull/112
Diffstat (limited to 'mcs/class/System.Drawing')
-rw-r--r-- | mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs index 958aa0bb319..4e6c2572529 100644 --- a/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs +++ b/mcs/class/System.Drawing/Test/System.Drawing/GDIPlusTest.cs @@ -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); |