summaryrefslogtreecommitdiffstats
path: root/tests/ttk
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2016-05-22 20:55:05 (GMT)
committerfvogel <fvogel@noemail.net>2016-05-22 20:55:05 (GMT)
commit106314beb330b03238d77ea1ede965287d0e7c69 (patch)
tree8f45747111a0be81d61caec3707a94f5eaf3d8a3 /tests/ttk
parentf194ea9b2f5dfe8ea0ff878480378641a6293c99 (diff)
downloadtk-106314beb330b03238d77ea1ede965287d0e7c69.zip
tk-106314beb330b03238d77ea1ede965287d0e7c69.tar.gz
tk-106314beb330b03238d77ea1ede965287d0e7c69.tar.bz2
Added test checkbutton-1.7 to guard against regressions regarding [109865fa01]
FossilOrigin-Name: 265212e3e7bb959db2e5e2b0c5a99f76f00ddb4c
Diffstat (limited to 'tests/ttk')
-rw-r--r--tests/ttk/checkbutton.test16
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