summaryrefslogtreecommitdiffstats
path: root/tests/imgSVGnano.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-06-04 21:04:10 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-06-04 21:04:10 (GMT)
commit27830e63ff84b223f0fde6d1039b18e7f9099ba7 (patch)
tree4dadc0aa653faf8964d9b3216a9dc8b4e325b9c3 /tests/imgSVGnano.test
parent37349167bfe39cd913f76d7fee2b58829833ca5b (diff)
downloadtk-27830e63ff84b223f0fde6d1039b18e7f9099ba7.zip
tk-27830e63ff84b223f0fde6d1039b18e7f9099ba7.tar.gz
tk-27830e63ff84b223f0fde6d1039b18e7f9099ba7.tar.bz2
Test added by René Zaumseil for the crash he just fixed
Diffstat (limited to 'tests/imgSVGnano.test')
-rw-r--r--tests/imgSVGnano.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/imgSVGnano.test b/tests/imgSVGnano.test
index 499a36f..82ea693 100644
--- a/tests/imgSVGnano.test
+++ b/tests/imgSVGnano.test
@@ -45,6 +45,17 @@ test imgSVGnano-1.2 {simple image with options} -setup {
rename foo ""
} -result {300 300}
+# test on crash found by Koen Danckaert
+test imgSVGnano-1.3 {reformat image options} -setup {
+ catch {rename foo ""}
+} -body {
+ image create photo foo -data $data(plus)
+ foo configure -format {svgnano -scale}
+ list {}
+} -cleanup {
+ rename foo ""
+} -result {}
+
test imgSVGnano-2.1 {reading a bad image} -body {
image create photo foo -format svgnano -data $data(bad)
} -returnCodes error -result {couldn't recognize image data}