Skip to content

Commit

Permalink
add test for identify parser error
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Apr 11, 2012
1 parent 2574838 commit 8d7f6c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file added examples/imgs/identifyParseErr.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions test/getterSize.js
Expand Up @@ -3,7 +3,7 @@


var assert = require('assert'); var assert = require('assert');


module.exports = function (gm, dir, finish) { module.exports = function (gm, dir, finish, GM) {


gm gm
.size(function gettersize (err, size) { .size(function gettersize (err, size) {
Expand All @@ -18,6 +18,9 @@ module.exports = function (gm, dir, finish) {
assert.equal(this.data.Geometry, '460x155'); assert.equal(this.data.Geometry, '460x155');
} }


finish(); GM(dir + '/identifyParseErr.jpg').size(function (err) {
if (err) return finish(err);
finish();
});
}); });
} }

0 comments on commit 8d7f6c6

Please sign in to comment.