forked from aheckmann/gm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added; proto.selectFrame(#). closes aheckmann#202
- Loading branch information
1 parent
fd8c16d
commit 89f9511
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var assert = require('assert'); | ||
var fs = require('fs') | ||
|
||
module.exports = function (_, dir, finish, gm) { | ||
var m = gm(dir + '/original.gif[0]') | ||
|
||
if (!gm.integration) | ||
return finish(); | ||
|
||
m.identify('%#', function (err, hash1) { | ||
if (err) return finish(err); | ||
|
||
m.selectFrame(2).identify('%#', function (err, hash2) { | ||
if (err) return finish(err); | ||
|
||
assert.ok(hash1.toString().trim() !== hash2.toString().trim()) | ||
finish(); | ||
}) | ||
}) | ||
} |