summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-06-13 11:30:11 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-06-13 11:30:11 (GMT)
commitb8e5f4ebd4ba3018ee6bd0b30cdd30b7aec8ded0 (patch)
treeb1f0c881b4a70bffccae164d09bfe66c6a80df3e /tests
parentae80940d633d4e743adb865a60c82318a74d3a57 (diff)
downloadtk-b8e5f4ebd4ba3018ee6bd0b30cdd30b7aec8ded0.zip
tk-b8e5f4ebd4ba3018ee6bd0b30cdd30b7aec8ded0.tar.gz
tk-b8e5f4ebd4ba3018ee6bd0b30cdd30b7aec8ded0.tar.bz2
New files provided by René Zaumseil: photo.n man page updated, and tests refined.
Diffstat (limited to 'tests')
-rw-r--r--tests/imgSVGnano.test22
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/imgSVGnano.test b/tests/imgSVGnano.test
index 82ea693..ec93f0a 100644
--- a/tests/imgSVGnano.test
+++ b/tests/imgSVGnano.test
@@ -50,11 +50,29 @@ test imgSVGnano-1.3 {reformat image options} -setup {
catch {rename foo ""}
} -body {
image create photo foo -data $data(plus)
- foo configure -format {svgnano -scale}
+ catch {foo configure -format {svgnano -scale}}
list {}
} -cleanup {
rename foo ""
-} -result {}
+} -result {{}}
+
+test imgSVGnano-1.4 {image options} -setup {
+ catch {rename foo ""}
+} -body {
+ image create photo foo -data $data(plus)
+ foo configure -format {svgnano -scale 2}
+ foo configure -format {svgnano -x 20 -y -10}
+ foo configure -format {svgnano -unit pt}
+ foo configure -format {svgnano -unit mm}
+ foo configure -format {svgnano -unit cm}
+ foo configure -format {svgnano -unit in}
+ foo configure -format {svgnano -unit px}
+ foo configure -format {svgnano -dpi 600}
+ list [image width foo] [image height foo]
+} -cleanup {
+ rename foo ""
+} -result {100 100}
+
test imgSVGnano-2.1 {reading a bad image} -body {
image create photo foo -format svgnano -data $data(bad)