diff options
author | fvogelnew1@free.fr <fvogel> | 2016-05-22 20:55:05 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2016-05-22 20:55:05 (GMT) |
commit | 6a0ae1d50a91463bc268406be7af515ba666d0e9 (patch) | |
tree | 8f45747111a0be81d61caec3707a94f5eaf3d8a3 | |
parent | 8060f6b97e46248631dee5ba91d591431fc882e9 (diff) | |
download | tk-6a0ae1d50a91463bc268406be7af515ba666d0e9.zip tk-6a0ae1d50a91463bc268406be7af515ba666d0e9.tar.gz tk-6a0ae1d50a91463bc268406be7af515ba666d0e9.tar.bz2 |
Added test checkbutton-1.7 to guard against regressions regarding [109865fa01]
-rw-r--r-- | tests/ttk/checkbutton.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ttk/checkbutton.test b/tests/ttk/checkbutton.test index e18ff32..6b79287 100644 --- a/tests/ttk/checkbutton.test +++ b/tests/ttk/checkbutton.test @@ -45,4 +45,20 @@ test checkbutton-1.6 "Checkbutton default variable" -body { lappend result [info exists .cb] [set .cb] [.cb state] } -result [list .cb 0 alternate 1 on selected 1 off {}] +# Bug [109865fa01] +test checkbutton-1.7 "Button destroyed by click" -body { + proc destroy_button {} { + destroy .top + } + toplevel .top + ttk::menubutton .top.mb -text Button -style TLabel + bind .top.mb <ButtonRelease-1> destroy_button + pack .top.mb + focus -force .top.mb + update + event generate .top.mb <1> + event generate .top.mb <ButtonRelease-1> + update ; # shall not trigger error invalid command name ".top.b" +} -result {} + tcltest::cleanupTests |