summaryrefslogtreecommitdiffstats
path: root/tests/menu.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-11-08 20:54:16 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-11-08 20:54:16 (GMT)
commit59019dfc0edd40d06346a2cb1a867b9ccba3edce (patch)
tree3c47999b22defcaefabb3c32718df5fea64b94b7 /tests/menu.test
parent4157fea91f3abefc7b101b47bb1445f2d8a9fb45 (diff)
parenta3640d8730f69736eac8a3218c87275f9c360539 (diff)
downloadtk-59019dfc0edd40d06346a2cb1a867b9ccba3edce.zip
tk-59019dfc0edd40d06346a2cb1a867b9ccba3edce.tar.gz
tk-59019dfc0edd40d06346a2cb1a867b9ccba3edce.tar.bz2
Fixed [2160206fff] - Panic when posting a menu of type menubar
Diffstat (limited to 'tests/menu.test')
-rw-r--r--tests/menu.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/menu.test b/tests/menu.test
index 59239d7..aaadc86 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -3867,6 +3867,18 @@ test menu-35.1 {menu -underline string overruns Bug 1599877} -setup {
deleteWindows
} -result {}
+test menu-37.1 {menubar menues cannot be posted - bug 2160206} -setup {
+ catch {destroy .m}
+} -body {
+ # On Linux the following used to panic
+ # It now returns an error (on all platforms)
+ menu .m -type menubar
+ list [catch ".m post 1 1" msg] $msg
+} -cleanup {
+ destroy .m
+} -result {1 {a menubar menu cannot be posted}}
+
+
# cleanup
imageFinish
deleteWindows