diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-07 11:52:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-07 11:52:25 (GMT) |
commit | 526bccf8bf38fe66da8e6e951cca4435c30869d9 (patch) | |
tree | 065642017a2366688e78da5847cf09863b4c00c6 /tests/imgPhoto.test | |
parent | 736182eb0ce25a4d67ff0671135ccc197b954bc3 (diff) | |
download | tk-526bccf8bf38fe66da8e6e951cca4435c30869d9.zip tk-526bccf8bf38fe66da8e6e951cca4435c30869d9.tar.gz tk-526bccf8bf38fe66da8e6e951cca4435c30869d9.tar.bz2 |
Disable two test-cases for Tcl < 8.6.7 (they fail because of bug [25842c161f])
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r-- | tests/imgPhoto.test | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test index c4b4755..46daaa2 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 |