Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mark more images as similar

  • Loading branch information...
commit e7387c3ec3404829b927fe5c7bc955cf6cbd15a0 1 parent 31a9f1d
Konstantin Käfer authored
Showing with 5 additions and 4 deletions.
  1. +3 −3 test/blend.test.js
  2. +2 −1  test/tint.test.js
View
6 test/blend.test.js
@@ -79,7 +79,7 @@ describe('JPEG writing', function() {
}, function(err, data, warnings) {
if (err) return done(err);
assert.deepEqual(warnings, []);
- utilities.imageEqualsFile(data, 'test/fixture/results/8.png', done);
+ utilities.imageEqualsFile(data, 'test/fixture/results/8.png', 0.01, done);
});
});
@@ -92,7 +92,7 @@ describe('JPEG writing', function() {
}, function(err, data, warnings) {
if (err) return done(err);
assert.deepEqual(warnings, []);
- utilities.imageEqualsFile(data, 'test/fixture/results/9.png', done);
+ utilities.imageEqualsFile(data, 'test/fixture/results/9.png', 0.01, done);
});
});
@@ -125,7 +125,7 @@ describe('JPEG writing', function() {
], function(err, data, warnings) {
if (err) return done(err);
assert.deepEqual(warnings, []);
- utilities.imageEqualsFile(data, 'test/fixture/results/5.png', done);
+ utilities.imageEqualsFile(data, 'test/fixture/results/5.png', 0.01, done);
});
});
View
3  test/tint.test.js
@@ -58,6 +58,7 @@ describe('tinting combinations on varied images', function() {
quality:256,
hextree:true
};
+ var maxError = path.extname(file) === '.jpeg' ? 0.01 : 0;
it(file + '-' + tinter.toString(), function(done) {
var buf = fs.readFileSync('./test/fixture/tinting/' + file);
var tint_obj;
@@ -71,7 +72,7 @@ describe('tinting combinations on varied images', function() {
if (!fs.existsSync(filepath)) {
fs.writeFileSync(filepath,data);
}
- utilities.imageEqualsFile(data, filepath, done);
+ utilities.imageEqualsFile(data, filepath, maxError, done);
});
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.