Browse Source
Merge branch 'master' into js/pixel-type-info
pull/1420/head
James Jackson-South
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
12 additions and
3 deletions
-
.github/workflows/build-and-test.yml
-
tests/Directory.Build.targets
-
tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj
-
tests/ImageSharp.Tests/Processing/Processors/Transforms/ResizeTests.cs
-
tests/ImageSharp.Tests/TestUtilities/Tests/TestEnvironmentTests.cs
|
|
|
@ -18,6 +18,10 @@ jobs: |
|
|
|
framework: netcoreapp3.1 |
|
|
|
runtime: -x64 |
|
|
|
codecov: true |
|
|
|
- os: macos-latest |
|
|
|
framework: netcoreapp3.1 |
|
|
|
runtime: -x64 |
|
|
|
codecov: false |
|
|
|
- os: windows-latest |
|
|
|
framework: netcoreapp3.1 |
|
|
|
runtime: -x64 |
|
|
|
|
|
|
|
@ -35,6 +35,8 @@ |
|
|
|
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.7.1" /> |
|
|
|
<PackageReference Update="Moq" Version="4.14.6" /> |
|
|
|
<PackageReference Update="Pfim" Version="0.9.1" /> |
|
|
|
<!-- Enable support for using libgdiplus on macOS --> |
|
|
|
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" Condition="$([MSBuild]::IsOSPlatform('OSX'))" /> |
|
|
|
<PackageReference Update="SharpZipLib" Version="1.3.0" /> |
|
|
|
<PackageReference Update="System.Drawing.Common" Version="4.7.0" /> |
|
|
|
<PackageReference Update="xunit" Version="2.4.1" /> |
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ |
|
|
|
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Condition="'$(OS)' == 'Windows_NT'" /> |
|
|
|
<PackageReference Include="Colourful" /> |
|
|
|
<PackageReference Include="Pfim" /> |
|
|
|
<PackageReference Include="SharpZipLib" /> |
|
|
|
<PackageReference Include="SharpZipLib" /> |
|
|
|
<PackageReference Include="System.Drawing.Common" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
|
|
|
@ -355,6 +355,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms |
|
|
|
} |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[PlatformSpecific(~TestPlatforms.OSX)] |
|
|
|
[WithFileCollection(nameof(CommonTestImages), DefaultPixelType)] |
|
|
|
public void ResizeFromSourceRectangle<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
@ -437,6 +438,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms |
|
|
|
} |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[PlatformSpecific(~TestPlatforms.OSX)] |
|
|
|
[WithFileCollection(nameof(CommonTestImages), DefaultPixelType)] |
|
|
|
public void ResizeWithBoxPadMode<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
@ -547,6 +549,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Processors.Transforms |
|
|
|
} |
|
|
|
|
|
|
|
[Theory] |
|
|
|
[PlatformSpecific(~TestPlatforms.OSX)] |
|
|
|
[WithFileCollection(nameof(CommonTestImages), DefaultPixelType)] |
|
|
|
public void ResizeWithPadMode<TPixel>(TestImageProvider<TPixel> provider) |
|
|
|
where TPixel : unmanaged, IPixel<TPixel> |
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
[InlineData("lol/Baz.gif", typeof(GifEncoder))] |
|
|
|
public void GetReferenceEncoder_ReturnsCorrectEncoders_Windows(string fileName, Type expectedEncoderType) |
|
|
|
{ |
|
|
|
if (TestEnvironment.IsLinux) |
|
|
|
if (!TestEnvironment.IsWindows) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
@ -83,7 +83,7 @@ namespace SixLabors.ImageSharp.Tests |
|
|
|
[InlineData("lol/Baz.gif", typeof(GifDecoder))] |
|
|
|
public void GetReferenceDecoder_ReturnsCorrectDecoders_Windows(string fileName, Type expectedDecoderType) |
|
|
|
{ |
|
|
|
if (TestEnvironment.IsLinux) |
|
|
|
if (!TestEnvironment.IsWindows) |
|
|
|
{ |
|
|
|
return; |
|
|
|
} |
|
|
|
|