Skip to content

Commit

Permalink
Tests: tweak colour thresholds for (non-turbo) libjpeg compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Sep 21, 2018
1 parent 93aac66 commit 1106aac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/unit/extractChannel.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Image channel extraction', function () {
if (err) throw err;
assert.strictEqual(320, info.width);
assert.strictEqual(240, info.height);
fixtures.assertMaxColourDistance(output, fixtures.expected('extract-lch.jpg'));
fixtures.assertMaxColourDistance(output, fixtures.expected('extract-lch.jpg'), 9);
done();
});
});
Expand Down
8 changes: 4 additions & 4 deletions test/unit/tint.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) {
if (err) throw err;
assert.strictEqual(true, info.size > 0);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-red.jpg'), 10);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-red.jpg'), 18);
done();
});
});
Expand All @@ -27,7 +27,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) {
if (err) throw err;
assert.strictEqual(true, info.size > 0);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-green.jpg'), 10);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-green.jpg'), 27);
done();
});
});
Expand All @@ -40,7 +40,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) {
if (err) throw err;
assert.strictEqual(true, info.size > 0);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-blue.jpg'), 10);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-blue.jpg'), 14);
done();
});
});
Expand Down Expand Up @@ -95,7 +95,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) {
if (err) throw err;
assert.strictEqual(true, info.size > 0);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-cmyk.jpg'), 10);
fixtures.assertMaxColourDistance(output, fixtures.expected('tint-cmyk.jpg'), 15);
done();
});
});
Expand Down

0 comments on commit 1106aac

Please sign in to comment.