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:
Rishabh Shukla
2020-01-18 01:30:13 +05:30
committed by Jeffrey Warren
parent d1b9b8becc
commit 89fb3585ac
23 changed files with 232 additions and 37 deletions

View File

@@ -1,4 +1,9 @@
const testModule = require('../templates/module-test'),
_benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAApSURBVKXBAQEAMAzDIF7/nncRgYcTTDTRRBNNNNFEE0000UQTTTTRRB9NQAEfe+dsMAAAAABJRU5ErkJggg==',
option = {threshold: 'Automatic Thresholding'},
_option = {threshold: 'Manual Thresholding'},
benchmark = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAklEQVR4AewaftIAAAApSURBVKXBAQEAAAiAIPP/5+qDMPsIJJJIIokkkkgiiSSSSCKJJJJIogNrygQcXEYsHQAAAABJRU5ErkJggg==';
testModule('threshold', {threshold: 'Automatic Thresholding'}, benchmark);
testModule('threshold', option, benchmark);
require('../templates/options-test')('threshold', [option, _option], [benchmark, _benchmark]);