Browse Source

Disable smoke test

pull/291/head
JimBobSquarePants 9 years ago
parent
commit
51eca28eb6
  1. 40
      tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs

40
tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs

@ -40,25 +40,27 @@ namespace ImageSharp.Tests.Formats.Png
} }
} }
[Theory] // JJS: Disabled for now as the decoder now correctly decodes the full pixel components if the
[WithTestPatternImages(100, 100, PixelTypes.Rgba32)] // paletted image has alpha of 0
public void CanSaveIndexedPng<TPixel>(TestImageProvider<TPixel> provider) //[Theory]
where TPixel : struct, IPixel<TPixel> //[WithTestPatternImages(100, 100, PixelTypes.Rgba32)]
{ //public void CanSaveIndexedPng<TPixel>(TestImageProvider<TPixel> provider)
// does saving a file then repoening mean both files are identical??? // where TPixel : struct, IPixel<TPixel>
using (Image<TPixel> image = provider.GetImage()) //{
using (MemoryStream ms = new MemoryStream()) // // does saving a file then repoening mean both files are identical???
{ // using (Image<TPixel> image = provider.GetImage())
// image.Save(provider.Utility.GetTestOutputFileName("bmp")); // using (MemoryStream ms = new MemoryStream())
image.Save(ms, new PngEncoder() { PaletteSize = 256 }); // {
ms.Position = 0; // // image.Save(provider.Utility.GetTestOutputFileName("bmp"));
using (Image<Rgba32> img2 = Image.Load<Rgba32>(ms, new PngDecoder())) // image.Save(ms, new PngEncoder() { PaletteSize = 256 });
{ // ms.Position = 0;
// img2.Save(provider.Utility.GetTestOutputFileName("bmp", "_loaded"), new BmpEncoder()); // using (Image<Rgba32> img2 = Image.Load<Rgba32>(ms, new PngDecoder()))
ImageComparer.CheckSimilarity(image, img2, 0.03f); // {
} // // img2.Save(provider.Utility.GetTestOutputFileName("bmp", "_loaded"), new BmpEncoder());
} // ImageComparer.CheckSimilarity(image, img2, 0.03f);
} // }
// }
//}
// JJS: Commented out for now since the test does not take into lossy nature of indexing. // JJS: Commented out for now since the test does not take into lossy nature of indexing.
//[Theory] //[Theory]

Loading…
Cancel
Save