diff options
author | fvogel <fvogelnew1@free.fr> | 2024-06-08 08:36:50 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-06-08 08:36:50 (GMT) |
commit | dd00d32a89426c4c9b36774dec3dbe026c069158 (patch) | |
tree | 21e841dbcaf47b6cab2c79d8020da8ac62119277 /tests | |
parent | da20d6adfe8b9d1d363dc3db29569367ffce2115 (diff) | |
download | tk-dd00d32a89426c4c9b36774dec3dbe026c069158.zip tk-dd00d32a89426c4c9b36774dec3dbe026c069158.tar.gz tk-dd00d32a89426c4c9b36774dec3dbe026c069158.tar.bz2 |
Add test imgPhoto-12.5 demonstrating bug [a0241c0e25].
Diffstat (limited to 'tests')
-rw-r--r-- | tests/imgPhoto.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test index 1d3b6e5..c006775 100644 --- a/tests/imgPhoto.test +++ b/tests/imgPhoto.test @@ -1054,6 +1054,17 @@ test imgPhoto-12.4 {Tk_ImgPhotoPutZoomedBlock, empty image} -setup { } -cleanup { imageCleanup } -result {0 0} +test imgPhoto-12.5 {Tk_ImgPhotoPutZoomedBlock, copy from area outside the image, bug [a0241c0e25]} -setup { + imageCleanup +} -body { + image create photo photo1 -width 20 -height 20 + image create photo photo2 -width 9 -height 10 + # next line used to loop for a very long time; if the bug is present + # the CI runner will time out, leading to test suite failure + photo2 copy photo1 -to 0 5 3 8 -from 21 0 +} -cleanup { + imageCleanup +} test imgPhoto-13.1 {check separation of images in different interpreters} -setup { imageCleanup |