diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/config.test | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/tests/config.test b/tests/config.test index 078c3f5..34c81fd 100644 --- a/tests/config.test +++ b/tests/config.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: config.test,v 1.4 2000/09/17 21:02:40 ericm Exp $ +# RCS: @(#) $Id: config.test,v 1.5 2001/08/29 23:22:24 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -864,7 +864,25 @@ test config-13.1 {proper cleanup of options with widget destroy} { } { destroy .w $type .w -cursor crosshair - destroy .w + destroy .w + } +} {} + +eval destroy [winfo children .] + +test config-14.1 {Tk_CreateOptionTable - use with namespace import} { + namespace export -clear * + foreach type { + button canvas entry frame listbox menu menubutton message + scale scrollbar spinbox text radiobutton checkbutton + } { + namespace eval ::foo [subst { + namespace import -force ::$type + ::foo::$type .a + ::foo::$type .b + } + ] + destroy .a .b } } {} |