mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Tests added (#943)
This commit is contained in:
@@ -13,20 +13,20 @@ var target = 'test_outputs'
|
||||
var options = {resize: '129%'}
|
||||
|
||||
test('Resize module loads correctly', function(t) {
|
||||
sequencer.loadImages('test', red)
|
||||
sequencer.loadImages(red)
|
||||
sequencer.addSteps('resize', options)
|
||||
t.equal(sequencer.images.test.steps[1].options.name, 'resize', 'Resize module is getting loaded')
|
||||
t.equal(sequencer.steps[1].options.name, 'resize', 'Resize module is getting loaded')
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('Resize module loads with correct options', function(t) {
|
||||
t.equal(sequencer.images.test.steps[1].options.resize, '129%', 'Options are correct');
|
||||
t.equal(sequencer.steps[1].options.resize, '129%', 'Options are correct');
|
||||
t.end();
|
||||
})
|
||||
|
||||
test('Resize module works correctly', function(t) {
|
||||
sequencer.run({mode:'test'}, function(out) {
|
||||
var result = sequencer.images.test.steps[1].output.src
|
||||
var result = sequencer.steps[1].output.src
|
||||
base64Img.imgSync(result, target, 'result')
|
||||
base64Img.imgSync(benchmark, target, 'benchmark')
|
||||
result = './test_outputs/result.png'
|
||||
|
||||
Reference in New Issue
Block a user