diff options
author | fvogel <fvogelnew1@free.fr> | 2019-05-11 07:11:31 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-05-11 07:11:31 (GMT) |
commit | 2786e6306a5abd0163e0c4c07bcdbc7879b8dc36 (patch) | |
tree | dc2353c6318102537ccb87336f3e7e8c87c88529 /tests | |
parent | c3e5b11af87fda44b0ca570f6e266de2b9e0e172 (diff) | |
download | tk-2786e6306a5abd0163e0c4c07bcdbc7879b8dc36.zip tk-2786e6306a5abd0163e0c4c07bcdbc7879b8dc36.tar.gz tk-2786e6306a5abd0163e0c4c07bcdbc7879b8dc36.tar.bz2 |
Add test checking for the specific case of [0d93f2e628]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/imgSVGnano.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/imgSVGnano.test b/tests/imgSVGnano.test index 1cd603c..5052d8e 100644 --- a/tests/imgSVGnano.test +++ b/tests/imgSVGnano.test @@ -77,9 +77,16 @@ test imgSVGnano-2.1 {reading a bad image} -body { image create photo foo -format svg -data $data(bad) } -returnCodes error -result {couldn't recognize image data} test imgSVGnano-2.2 {using bad option} -body { - image create photo -data $data(plus) -format {svg -scale 0} + image create photo foo -data $data(plus) -format {svg -scale 0} } -returnCodes error -result {couldn't recognize image data -scale value must be positive} +test imgSVGnano-2.3 {using bad option} -body { + image create photo foo -data $data(plus) + foo configure -format {svg 1.0} +} -cleanup { + rename foo "" +} -returnCodes error -result {couldn't recognize image data +bad option "1.0": must be -dpi, -scale, or -unit} };# end of namespace svgnano |