Browse Source

fixing tests

af/merge-core
Anton Firszov 9 years ago
parent
commit
a3dcbfada0
  1. 6
      tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.ComponentData.cs
  2. 2
      tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs

6
tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.ComponentData.cs

@ -14,7 +14,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
{
public class ComponentData : IEquatable<ComponentData>, IJpegComponent
{
public ComponentData(int heightInBlocks, int widthInBlocks, int index)
public ComponentData(int widthInBlocks, int heightInBlocks, int index)
{
this.HeightInBlocks = heightInBlocks;
this.WidthInBlocks = widthInBlocks;
@ -54,8 +54,8 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
public static ComponentData Load(PdfJsFrameComponent c, int index)
{
var result = new ComponentData(
c.BlocksPerColumnForMcu,
c.BlocksPerLineForMcu,
c.WidthInBlocks,
c.HeightInBlocks,
index
);

2
tests/ImageSharp.Tests/Formats/Jpg/Utils/LibJpegTools.cs

@ -76,7 +76,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
{
int widthInBlocks = rdr.ReadInt16();
int heightInBlocks = rdr.ReadInt16();
ComponentData resultComponent = new ComponentData(heightInBlocks, widthInBlocks, i);
ComponentData resultComponent = new ComponentData(widthInBlocks, heightInBlocks, i);
result[i] = resultComponent;
}

Loading…
Cancel
Save