summaryrefslogtreecommitdiffstats
path: root/tests/imgPhoto.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-07 12:13:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-07 12:13:21 (GMT)
commit7f03ac60d68d980ada660ac1d15a688092a6cd70 (patch)
tree9f50320e8aeea62bd8b30c4d857041bc6cd8ca77 /tests/imgPhoto.test
parent7c9787421e4ccc9cb128a343be416ef47a829c43 (diff)
parent526bccf8bf38fe66da8e6e951cca4435c30869d9 (diff)
downloadtk-7f03ac60d68d980ada660ac1d15a688092a6cd70.zip
tk-7f03ac60d68d980ada660ac1d15a688092a6cd70.tar.gz
tk-7f03ac60d68d980ada660ac1d15a688092a6cd70.tar.bz2
Merge trunk
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r--tests/imgPhoto.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index fd1918e..6feedc8 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -129,7 +129,9 @@ testConstraint hasTeapotPhoto [file exists $teapotPhotoFile]
# let's see if we have the semi-transparent one as well
set transpTeapotPhotoFile [file join [file dirname [info script]] teapotTransparent.png]
testConstraint hasTranspTeapotPhoto [file exists $transpTeapotPhotoFile]
-
+testConstraint needsTcl867 [package vsatisfies [package provide Tcl] 8.6.7-]
+
+
test imgPhoto-1.1 {options for photo images} -body {
image create photo photo1 -width 79 -height 83
list [photo1 cget -width] [photo1 cget -height] \
@@ -264,8 +266,9 @@ test imgPhoto-3.4 {ImgPhotoConfigureModel: -data <ppm>} -constraints {
} -cleanup {
imageCleanup
} -result {20 20}
+# This testcase fails with Tcl < 8.6.7, due to [25842c]
test imgPhoto-3.5 {ImgPhotoConfigureModel: -data <png>} -constraints {
- hasTeapotPhoto
+ hasTeapotPhoto needsTcl867
} -setup {
image create photo photo1 -file $teapotPhotoFile
image create photo photo2
@@ -1332,10 +1335,10 @@ test imgPhoto-4.117 {ImgPhotoCmd data: list colorformat} -setup {
} -body {
photo1 data -format {default -colorformat list}
} -result {{{255 0 0 170} {0 128 0 255}} {{0 0 255 204} {255 255 255 221}}}
+# This testcase fails with Tcl < 8.6.7, due to [25842c]
test imgPhoto-4.118 {ImgPhotoCmd data: using data for new image
results in same image as orignial } -constraints {
- hasTeapotPhoto
- hasTranspTeapotPhoto
+ hasTeapotPhoto hasTranspTeapotPhoto needsTcl867
} -setup {
image create photo teapot -file $teapotPhotoFile
teapot copy teapot -from 50 60 70 80 -shrink