Browse Source

run Windows-only tests only on Windows

af/merge-core
Anton Firszov 9 years ago
parent
commit
2257df591a
  1. 5
      tests/ImageSharp.Tests/Formats/Jpg/LibJpegToolsTests.cs
  2. 10
      tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs

5
tests/ImageSharp.Tests/Formats/Jpg/LibJpegToolsTests.cs

@ -29,6 +29,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
public void ExtractSpectralData<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
if (!TestEnvironment.IsWindows)
{
return;
}
string testImage = provider.SourceFileOrDescription;
LibJpegTools.SpectralData data = LibJpegTools.ExtractSpectralData(testImage);

10
tests/ImageSharp.Tests/Formats/Jpg/SpectralJpegTests.cs

@ -124,6 +124,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
public void VerifySpectralCorrectness_PdfJs<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
if (!TestEnvironment.IsWindows)
{
return;
}
PdfJsJpegDecoderCore decoder = new PdfJsJpegDecoderCore(Configuration.Default, new JpegDecoder());
byte[] sourceBytes = TestFile.Create(provider.SourceFileOrDescription).Bytes;
@ -142,6 +147,11 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg
public void VerifySpectralResults_OriginalDecoder<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : struct, IPixel<TPixel>
{
if (!TestEnvironment.IsWindows)
{
return;
}
OrigJpegDecoderCore decoder = new OrigJpegDecoderCore(Configuration.Default, new JpegDecoder());
byte[] sourceBytes = TestFile.Create(provider.SourceFileOrDescription).Bytes;

Loading…
Cancel
Save