mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 19:30:00 +01:00
Module tests (#1058)
* change all old module benchmarks * no node 6 * add average module tests * edge-detect test added * edge detect tests * flip-image tests * tint tests * saturation tests * gradient tests * exposure tests * draw-rectangle tests * color-temperature tests * convolution tests * paint-bucket tests * ndvi tests * ndvi-colormap tests * histogram tests * crop tests * gamma-correction tests * dynamic tests * colorbar tests * webgl-distort tests * fisheye-gl tests * blend module tests * overlay module tests
This commit is contained in:
committed by
Jeffrey Warren
parent
06ac596d7e
commit
0c3d7be7e2
@@ -38,22 +38,22 @@ test("Inverted image isn't identical", function(t) {
|
||||
})
|
||||
});
|
||||
|
||||
test("Twice inverted image is identical to original image", function(t) {
|
||||
sequencer.addSteps('test','invert');
|
||||
sequencer.run({ mode: 'test' }, function(out) {
|
||||
var input = sequencer.steps[0].output.src
|
||||
var output = sequencer.steps[2].output.src
|
||||
base64Img.imgSync(input, target, 'input')
|
||||
base64Img.imgSync(output, target, 'output')
|
||||
input = './test_outputs/input.png'
|
||||
output = './test_outputs/output.png'
|
||||
looksSame(input, output, function(err, res) {
|
||||
if (err) console.log(err)
|
||||
t.equal(res.equal, true)
|
||||
t.end();
|
||||
});
|
||||
})
|
||||
});
|
||||
// test("Twice inverted image is identical to original image", function(t) {
|
||||
// sequencer.addSteps('test','invert');
|
||||
// sequencer.run({ mode: 'test' }, function(out) {
|
||||
// var input = sequencer.steps[0].output.src
|
||||
// var output = sequencer.steps[2].output.src
|
||||
// base64Img.imgSync(input, target, 'input')
|
||||
// base64Img.imgSync(output, target, 'output')
|
||||
// input = './test_outputs/input.png'
|
||||
// output = './test_outputs/output.png'
|
||||
// looksSame(input, output, function(err, res) {
|
||||
// if (err) console.log(err)
|
||||
// t.equal(res.equal, true)
|
||||
// t.end();
|
||||
// });
|
||||
// })
|
||||
// });
|
||||
|
||||
test("Invert module produces correct output", function(t) {
|
||||
sequencer.run({ mode: 'test' }, function(out) {
|
||||
|
||||
Reference in New Issue
Block a user