mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +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,7 +1,13 @@
|
||||
const testModule = require('../templates/module-test'),
|
||||
benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAAtSURBVKXBAQEAMAiAME6H9y9nDw3B9v7MEkgkkUQSSSSRRBJJJJFEEkkkkUQH2vAC/LDhuwsAAAAASUVORK5CYII=',
|
||||
_benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAAsSURBVKXBAQEAMAiAME43m7+XhmB7f2YJJJJIIokkkkgiiSSSSCKJJJJIogOYTgJtR8dNuwAAAABJRU5ErkJggg==',
|
||||
_options = {
|
||||
saturation: 0.5
|
||||
},
|
||||
options = {
|
||||
saturation: 1.2
|
||||
};
|
||||
|
||||
require('../templates/options-test')('saturation', [options, _options], [benchmark, _benchmark]);
|
||||
|
||||
testModule('saturation', options, benchmark);
|
||||
Reference in New Issue
Block a user