summaryrefslogtreecommitdiffstats
path: root/tests/canvWind.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-03-09 21:36:33 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-03-09 21:36:33 (GMT)
commit2df03c765cf8b22cf3ed085b2f5c5ddaf7b60ab3 (patch)
tree1e7f6780ea594767d7b2d3afe8de07979d80ad42 /tests/canvWind.test
parent822af973da0c377d5fdc2807967d49a41b687c7e (diff)
downloadtk-2df03c765cf8b22cf3ed085b2f5c5ddaf7b60ab3.zip
tk-2df03c765cf8b22cf3ed085b2f5c5ddaf7b60ab3.tar.gz
tk-2df03c765cf8b22cf3ed085b2f5c5ddaf7b60ab3.tar.bz2
Add test canvWind-2.1 demonstrating bug [5412c64a79]
Diffstat (limited to 'tests/canvWind.test')
-rw-r--r--tests/canvWind.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/canvWind.test b/tests/canvWind.test
index 436ee2c..9777427 100644
--- a/tests/canvWind.test
+++ b/tests/canvWind.test
@@ -139,6 +139,22 @@ test canvWind-1.4 {DisplayWinItem, windows off-screen horizontally} -setup {
destroy .t
} -result {{1 3} {1 -79} {0 -79} {1 255} {0 255}}
+test canvWind-2.1 {DisplayWinItem, window gets destroyed duing <Configure>} -setup {
+ destroy .t
+} -body {
+ toplevel .t
+ canvas .t.c
+ pack .t.c
+ frame .t.c.f -width 50 -height 50 -background red
+ set id [.t.c create window 50 50 -window .t.c.f]
+ update
+ bind .t.c.f <Configure> {destroy .t.c.f}
+ .t.c coords $id 60 60 ; # crashes!
+ update
+} -cleanup {
+ destroy .t
+} -result {}
+
# cleanup
cleanupTests
return