diff options
author | griffin <briang42@easystreet.net> | 2021-03-15 20:10:04 (GMT) |
---|---|---|
committer | griffin <briang42@easystreet.net> | 2021-03-15 20:10:04 (GMT) |
commit | 7dcc8131f3a23e47eb29322fd7c9ef2c691b925c (patch) | |
tree | d864f776cd4311dcaa34e0a718f1b44bb4a281b3 /tests | |
parent | 30cbe7c9a25fd9d16a74523fdcd39c4ee12a883f (diff) | |
download | tk-7dcc8131f3a23e47eb29322fd7c9ef2c691b925c.zip tk-7dcc8131f3a23e47eb29322fd7c9ef2c691b925c.tar.gz tk-7dcc8131f3a23e47eb29322fd7c9ef2c691b925c.tar.bz2 |
fix and testcase for ticket [9b6065d1fd]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/window.test | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/window.test b/tests/window.test index dec2cc4..8a56d5a 100644 --- a/tests/window.test +++ b/tests/window.test @@ -263,6 +263,38 @@ test window-2.11 {Tk_DestroyWindow, don't reanimate a half-dead window} -constra list $error $msg } -result {0 YES} +test window-2.12 {Test for ticket [9b6065d1fd] - restore Tcl [update] command} -constraints { + unixOrWin +} -body { + set code [loadTkCommand] + append code { + after 1000 {set forever 1} + after 100 {destroy .} + after 200 {catch bell msg; puts "ringing the bell -> $msg"} + after 250 {update idletasks} + after 300 {update} + puts "waiting" + vwait forever + puts "done waiting" + catch {bell} msg + puts "bell -> $msg" + catch update msg + puts "update -> $msg" + } + set script [makeFile $code script] + if {[catch {exec [interpreter] $script -geometry 10x10+0+0} msg]} { + set error 1 + } else { + set error 0 + } + removeFile script + list $error $msg +} -result {0 {waiting +ringing the bell -> can't invoke "bell" command: application has been destroyed +done waiting +bell -> can't invoke "bell" command: application has been destroyed +update -> }} + test window-3.1 {Tk_MakeWindowExist procedure, stacking order and menubars} -constraints { unix testmenubar @@ -342,6 +374,7 @@ test window-5.1 {Tk_MakeWindowExist procedure, stacking order and menubars} -con } -result {} + # cleanup cleanupTests return |