Browse Source

Add new test for kaboom

af/merge-core
James Jackson-South 8 years ago
parent
commit
531ebd6bf6
  1. 13
      tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs

13
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs

@ -82,6 +82,19 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms
}
}
[Theory]
[WithFile(TestImages.Png.Kaboom, DefaultPixelType)]
public void Resize_DoesNotBleedAlphaPixels<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
using (Image<TPixel> image = provider.GetImage())
{
image.Mutate(x => x.Resize(image.Width / 2, image.Height / 2));
image.DebugSave(provider);
image.CompareToReferenceOutput(provider);
}
}
[Theory]
[WithFile(TestImages.Gif.Giphy, DefaultPixelType)]
public void Resize_IsAppliedToAllFrames<TPixel>(TestImageProvider<TPixel> provider)

Loading…
Cancel
Save