summaryrefslogtreecommitdiffstats
path: root/tests/menu.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-05 09:40:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-05 09:40:46 (GMT)
commit9e471eb7e462d3f7acd8bb020b94999ae4ecff05 (patch)
tree94ed6c2ecb704bc3dd700c64e0531135a69e7aa4 /tests/menu.test
parentaacf8d739e27f7131d0a7322da993ba8158df5e6 (diff)
downloadtk-9e471eb7e462d3f7acd8bb020b94999ae4ecff05.zip
tk-9e471eb7e462d3f7acd8bb020b94999ae4ecff05.tar.gz
tk-9e471eb7e462d3f7acd8bb020b94999ae4ecff05.tar.bz2
[Bug 220950]: Don't delete the last menu entry when it is obvious that is not
what was intended.
Diffstat (limited to 'tests/menu.test')
-rw-r--r--tests/menu.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/menu.test b/tests/menu.test
index 25caf35..5dd89ab 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -5,7 +5,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: menu.test,v 1.25 2010/01/03 00:18:19 patthoyts Exp $
+# RCS: @(#) $Id: menu.test,v 1.26 2010/01/05 09:40:46 dkf Exp $
package require tcltest 2.2
namespace import ::tcltest::*
@@ -1455,6 +1455,17 @@ test menu-3.29 {MenuWidgetCmd procedure, "delete" option} -setup {
} -cleanup {
destroy .m1
} -result {}
+test menu-3.29+1 {MenuWidgetCmd, "delete", Bug 220950} -setup {
+ destroy .m1
+} -body {
+ menu .m1
+ .m1 add command -label "bogus"
+ .m1 add command -label "ok"
+ .m1 delete 10 20
+ .m1 entrycget last -label
+} -cleanup {
+ destroy .m1
+} -result ok
test menu-3.30 {MenuWidgetCmd procedure, "entrycget" option} -setup {
destroy .m1
} -body {