diff options
author | fvogel <fvogel@noemail.net> | 2015-09-29 19:30:02 (GMT) |
---|---|---|
committer | fvogel <fvogel@noemail.net> | 2015-09-29 19:30:02 (GMT) |
commit | 53a13c67efc11f2810d158cbfedabec9c8857fcb (patch) | |
tree | 910ef88c566c1299a1f551bb25800423467b6352 /tests/textWind.test | |
parent | c10dc7002607b9527235a2d545388b9a521d67b4 (diff) | |
parent | d13981fb3f6deb3af5b0eed9b2c6ab8578d6c12e (diff) | |
download | tk-53a13c67efc11f2810d158cbfedabec9c8857fcb.zip tk-53a13c67efc11f2810d158cbfedabec9c8857fcb.tar.gz tk-53a13c67efc11f2810d158cbfedabec9c8857fcb.tar.bz2 |
Fixed bug [1501749fff] - Crash on embedded window deletion bound to <Map> event
FossilOrigin-Name: 71a4658ff9a3d38b8856e6d92cd4e49f5964eddd
Diffstat (limited to 'tests/textWind.test')
-rw-r--r-- | tests/textWind.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/textWind.test b/tests/textWind.test index c3483e6..27b7309 100644 --- a/tests/textWind.test +++ b/tests/textWind.test @@ -1458,6 +1458,23 @@ test textWind-17.10 {peer widget window configuration} -setup { destroy .tt .t } -result {{-window {} {} {} {}} {-window {} {} {} {}} {-window {} {} {} .t.f} {-window {} {} {} .tt.t.f}} +test textWind-18.1 {embedded window deletion triggered by a script bound to <Map>} -setup { + catch {destroy .t .f .f2} +} -body { + 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 +} -cleanup { + destroy .t .f .f2 +} -result {} + option clear # cleanup |