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 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.HeightInBlocks = heightInBlocks;
this.WidthInBlocks = widthInBlocks; this.WidthInBlocks = widthInBlocks;
@ -54,8 +54,8 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg.Utils
public static ComponentData Load(PdfJsFrameComponent c, int index) public static ComponentData Load(PdfJsFrameComponent c, int index)
{ {
var result = new ComponentData( var result = new ComponentData(
c.BlocksPerColumnForMcu, c.WidthInBlocks,
c.BlocksPerLineForMcu, c.HeightInBlocks,
index 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 widthInBlocks = rdr.ReadInt16();
int heightInBlocks = rdr.ReadInt16(); int heightInBlocks = rdr.ReadInt16();
ComponentData resultComponent = new ComponentData(heightInBlocks, widthInBlocks, i); ComponentData resultComponent = new ComponentData(widthInBlocks, heightInBlocks, i);
result[i] = resultComponent; result[i] = resultComponent;
} }

Loading…
Cancel
Save