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
509 B
20 lines
509 B
|
|
var assert = require('assert')
|
|
|
|
module.exports = function (gm, dir, finish, GM) {
|
|
gm.source = __dirname + '/fixtures/compare_1.png';
|
|
var a = gm.composite(__dirname + '/fixtures/favicon.png')
|
|
|
|
var args = a.args();
|
|
assert.equal('composite', args[0]);
|
|
assert.equal(__dirname + '/fixtures/favicon.png', args[1]);
|
|
assert.equal(__dirname + '/fixtures/compare_1.png', args[2]);
|
|
|
|
if (!GM.integration)
|
|
return finish();
|
|
|
|
a
|
|
.write(dir + '/composite.png', function(err) {
|
|
finish(err);
|
|
});
|
|
}
|
|
|