summaryrefslogtreecommitdiffstats
path: root/tests/menu.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2001-08-01 16:21:11 (GMT)
committerdgp@users.sourceforge.net <dgp>2001-08-01 16:21:11 (GMT)
commitc7434cee89e3147e22707264d6a59c0f68153e58 (patch)
tree38846cbe94cc8aac068898282ced4624f130770e /tests/menu.test
parent70f7337d907732723cfac8033e7ff856d33aa5e8 (diff)
downloadtk-c7434cee89e3147e22707264d6a59c0f68153e58.zip
tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.gz
tk-c7434cee89e3147e22707264d6a59c0f68153e58.tar.bz2
Merged changes from feature branch dgp-privates-into-namespace,
implementing TIP 44. All Tk commands and variables matching tk[A-Z]* are now in the ::tk namespace.
Diffstat (limited to 'tests/menu.test')
-rw-r--r--tests/menu.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/menu.test b/tests/menu.test
index db13f8f..33995b0 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.6 2001/03/28 17:27:10 dgp Exp $
+# RCS: @(#) $Id: menu.test,v 1.7 2001/08/01 16:21:12 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -1066,20 +1066,20 @@ test menu-5.6 {DestroyMenuInstance - cascades of cloned menus} {
test menu-5.7 {DestroyMenuInstance - basic clones} {
catch {destroy .m1}
menu .m1
- set tearoff [tkTearOffMenu .m1]
+ set tearoff [tk::TearOffMenu .m1]
list [catch {destroy $tearoff} msg] $msg [destroy .m1]
} {0 {} {}}
test menu-5.8 {DestroyMenuInstance - multiple clones} {
catch {destroy .m1}
menu .m1
- set tearoff1 [tkTearOffMenu .m1]
- set tearoff2 [tkTearOffMenu .m1]
+ set tearoff1 [tk::TearOffMenu .m1]
+ set tearoff2 [tk::TearOffMenu .m1]
list [catch {destroy $tearoff1} msg] $msg [destroy .m1]
} {0 {} {}}
test menu-5.9 {DestroyMenuInstace - master menu} {
catch {destroy .m1}
menu .m1
- tkTearOffMenu .m1
+ tk::TearOffMenu .m1
list [catch {destroy .m1} msg] $msg
} {0 {}}
test menu-5.10 {DestroyMenuInstance - freeing entries} {
@@ -1105,7 +1105,7 @@ test menu-5.13 {DestroyMenuInstance - clones when mismatched tearoffs} {
menu .m1
menu .m2
.m1 add cascade -menu .m2
- set tearoff [tkTearOffMenu .m1 40 40]
+ set tearoff [tk::TearOffMenu .m1 40 40]
list [destroy .m2] [destroy .m1]
} {{} {}}
@@ -1899,7 +1899,7 @@ test menu-16.16 {MenuAddOrInsert} {
catch {destroy .m2}
menu .m1
menu .m2
- set tearoff [tkTearOffMenu .m2]
+ set tearoff [tk::TearOffMenu .m2]
list [catch {.m2 add cascade -menu .m1} msg] $msg [$tearoff unpost] [catch {destroy .m1} msg2] $msg2 [catch {destroy .m2} msg3] $msg3
} {0 {} {} 0 {} 0 {}}
test menu-16.17 {MenuAddOrInsert} {
@@ -1908,7 +1908,7 @@ test menu-16.17 {MenuAddOrInsert} {
menu .m1
menu .container
. configure -menu .container
- set tearoff [tkTearOffMenu .container]
+ set tearoff [tk::TearOffMenu .container]
list [catch {.container add cascade -label "File" -menu .m1} msg] $msg [. configure -menu ""] [destroy .m1 .container]
} {0 {} {} {}}
test menu-16.18 {MenuAddOrInsert} {