replaceImage

This commit is contained in:
Chinmay Pandhare
2017-07-01 23:49:24 +05:30
parent 74f1f92910
commit 3b16b66b28
6 changed files with 35 additions and 9 deletions

View File

@@ -108,3 +108,16 @@ test('run() runs the sequencer', function (t) {
t.equal(typeof(sequencer.images.test.steps[sequencer.images.test.steps.length - 1].output), "object", "It Does!");
t.end();
});
test('replaceImage() replaces the image and runs the sequencer', function (t) {
var testarray = [];
for (i in sequencer.images.test.steps) {
testarray.push(sequencer.images.test.steps[i].output.src);
}
t.equal(true,true);
sequencer.replaceImage('test','examples/cyan.jpg');
for (i in testarray) {
t.notEqual(testarray[i],sequencer.images.test.steps[i].output.src);
}
t.end();
});