summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-11-08 20:50:24 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-11-08 20:50:24 (GMT)
commita3640d8730f69736eac8a3218c87275f9c360539 (patch)
tree48d4dad3ca5c0e6207d8dd378de1409ca4d1942f /tests
parentce390072a6531ec9f2f2ab3e5aa724649fe6c33b (diff)
parent6f03beafe6690686391d15bab9f747ba3e89f6cd (diff)
downloadtk-a3640d8730f69736eac8a3218c87275f9c360539.zip
tk-a3640d8730f69736eac8a3218c87275f9c360539.tar.gz
tk-a3640d8730f69736eac8a3218c87275f9c360539.tar.bz2
Fixed [2160206fff] - Panic when posting a menu of type menubar
Diffstat (limited to 'tests')
-rw-r--r--tests/menu.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/menu.test b/tests/menu.test
index cfe00b9..c797281 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -2566,6 +2566,15 @@ test menu-36.1 {menu -underline string overruns Bug 1599877} {} {
tk::TraverseToMenu . "e"
} {}
+test menu-37.1 {menubar menues cannot be posted - bug 2160206} {} {
+ # On Linux the following used to panic
+ # It now returns an error (on all platforms)
+ catch {destroy .m}
+ menu .m -type menubar
+ list [catch ".m post 1 1" msg] $msg
+} {1 {a menubar menu cannot be posted}}
+
+
# cleanup
deleteWindows
cleanupTests