mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
Tests for checking image change upon change in options (#1490)
* add test for change in option for colormap * add test for change in option for colormap * add comments * add few tests * Add options change test for 14 more modules * add test Co-authored-by: Harsh Khandeparkar <34770591+HarshKhandeparkar@users.noreply.github.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
d1b9b8becc
commit
89fb3585ac
@@ -1,4 +1,9 @@
|
||||
const testModule = require('../templates/module-test'),
|
||||
benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAApSURBVKXBAQEAAAiDMKR/5xuC7QYjkEgiiSSSSCKJJJJIIokkkkgiiR5YbQIegx78CAAAAABJRU5ErkJggg==';
|
||||
benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAApSURBVKXBAQEAAAiDMKR/5xuC7QYjkEgiiSSSSCKJJJJIIokkkkgiiR5YbQIegx78CAAAAABJRU5ErkJggg==',
|
||||
_benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAApSURBVKXBAQEAAAiAIPP/5mqEMAtHIJFEEkkkkUQSSSSRRBJJJJFEEj1UXgIdx5M8pQAAAABJRU5ErkJggg==',
|
||||
option = {method: 'Median Filtering'},
|
||||
_option = {method: 'Mean Filtering'};
|
||||
|
||||
testModule('noise-reduction', {method: 'Median Filtering'}, benchmark);
|
||||
require('../templates/options-test')('noise-reduction', [option, _option], [benchmark, _benchmark]);
|
||||
|
||||
testModule('noise-reduction', option, benchmark);
|
||||
|
||||
Reference in New Issue
Block a user