Tests: tweak colour thresholds for (non-turbo) libjpeg compat

This commit is contained in:
Lovell Fuller 2018-09-21 19:51:47 +01:00
parent 93aac660a3
commit 1106aac2d8
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ describe('Image channel extraction', function () {
if (err) throw err; if (err) throw err;
assert.strictEqual(320, info.width); assert.strictEqual(320, info.width);
assert.strictEqual(240, info.height); assert.strictEqual(240, info.height);
fixtures.assertMaxColourDistance(output, fixtures.expected('extract-lch.jpg')); fixtures.assertMaxColourDistance(output, fixtures.expected('extract-lch.jpg'), 9);
done(); done();
}); });
}); });

View File

@ -14,7 +14,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) { .toFile(output, function (err, info) {
if (err) throw err; if (err) throw err;
assert.strictEqual(true, info.size > 0); 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(); done();
}); });
}); });
@ -27,7 +27,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) { .toFile(output, function (err, info) {
if (err) throw err; if (err) throw err;
assert.strictEqual(true, info.size > 0); 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(); done();
}); });
}); });
@ -40,7 +40,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) { .toFile(output, function (err, info) {
if (err) throw err; if (err) throw err;
assert.strictEqual(true, info.size > 0); 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(); done();
}); });
}); });
@ -95,7 +95,7 @@ describe('Tint', function () {
.toFile(output, function (err, info) { .toFile(output, function (err, info) {
if (err) throw err; if (err) throw err;
assert.strictEqual(true, info.size > 0); 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(); done();
}); });
}); });