summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-09-23 19:47:25 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-09-23 19:47:25 (GMT)
commit9c478cbc3d242c8758dc91da2942078a4003e642 (patch)
tree30ada10cf1280aa22574e64a76d434a77cf3609c /tests
parent98eb41e0b05803f956d31db6b2344869faca3504 (diff)
downloadtk-9c478cbc3d242c8758dc91da2942078a4003e642.zip
tk-9c478cbc3d242c8758dc91da2942078a4003e642.tar.gz
tk-9c478cbc3d242c8758dc91da2942078a4003e642.tar.bz2
Fixed bug [1501749fff] - Crash on embedded window deletion bound to <Map> event
Diffstat (limited to 'tests')
-rw-r--r--tests/textWind.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/textWind.test b/tests/textWind.test
index 79dca50..2e16f7b 100644
--- a/tests/textWind.test
+++ b/tests/textWind.test
@@ -1023,6 +1023,20 @@ test textWind-17.9 {peer widget window configuration} {
set res
} {{-window {} {} {} {}} {-window {} {} {} {}} {-window {} {} {} .t.f} {-window {} {} {} .tt.t.f}}
+test textWind-18.1 {embedded window deletion triggered by a script bound to <Map>} {
+ catch {destroy .t .f}
+ pack [text .t]
+ for {set i 1} {$i < 100} {incr i} {.t insert end "Line $i\n"}
+ .t window create end -window [frame .f -background red -width 80 -height 80]
+ .t window create end -window [frame .f2 -background blue -width 80 -height 80]
+ bind .f <Map> {.t delete .f}
+ update
+ # this shall not crash (bug 1501749)
+ after 100 {.t yview end}
+ tkwait visibility .f2
+ update
+} {}
+
catch {destroy .t}
option clear