Permalink
Browse files

mark more images as similar

  • Loading branch information...
1 parent 31a9f1d commit e7387c3ec3404829b927fe5c7bc955cf6cbd15a0 @kkaefer kkaefer committed Mar 2, 2013
Showing with 5 additions and 4 deletions.
  1. +3 −3 test/blend.test.js
  2. +2 −1 test/tint.test.js
View
@@ -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
@@ -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);
});
});
});

0 comments on commit e7387c3

Please sign in to comment.