Skip to content
Browse files

add test for identify parser error

  • Loading branch information...
1 parent 2574838 commit 8d7f6c698c2dcbc22819989b312b9bba73c856dd @aheckmann committed Apr 11, 2012
Showing with 5 additions and 2 deletions.
  1. BIN examples/imgs/identifyParseErr.jpg
  2. +5 −2 test/getterSize.js
View
BIN 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.
View
7 test/getterSize.js
@@ -3,7 +3,7 @@
var assert = require('assert');
-module.exports = function (gm, dir, finish) {
+module.exports = function (gm, dir, finish, GM) {
gm
.size(function gettersize (err, size) {
@@ -18,6 +18,9 @@ module.exports = function (gm, dir, finish) {
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.
Something went wrong with that request. Please try again.