mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
431 B
20 lines
431 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
gm
|
|
.depth(function getterdepth (err, depth) {
|
|
if (err) return finish(err);
|
|
if (this._options.imageMagick) {
|
|
assert.equal(16, depth);
|
|
assert.equal(16, this.data.depth);
|
|
} else {
|
|
assert.equal(8, depth);
|
|
assert.equal(8, this.data.depth);
|
|
}
|
|
finish();
|
|
});
|
|
}
|
|
|