diff options
author | dgp <dgp@users.sourceforge.net> | 2002-07-13 20:28:35 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-07-13 20:28:35 (GMT) |
commit | 05961d4dc9e4b65d07feac195998ca0f969b06d9 (patch) | |
tree | 83ce372d1ae9d46d27acc5638739bddcbc8e6ba6 /tests/scale.test | |
parent | 511415799ba6bf2ec3e5d90c57dfbb61da8c6da1 (diff) | |
download | tk-05961d4dc9e4b65d07feac195998ca0f969b06d9.zip tk-05961d4dc9e4b65d07feac195998ca0f969b06d9.tar.gz tk-05961d4dc9e4b65d07feac195998ca0f969b06d9.tar.bz2 |
* Converted more files to tcltest and factored out common code.
Diffstat (limited to 'tests/scale.test')
-rw-r--r-- | tests/scale.test | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/scale.test b/tests/scale.test index ee4981b..fb9ba5d 100644 --- a/tests/scale.test +++ b/tests/scale.test @@ -6,22 +6,14 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: scale.test,v 1.11 2002/07/13 00:30:25 dgp Exp $ +# RCS: @(#) $Id: scale.test,v 1.12 2002/07/13 20:28:35 dgp Exp $ package require tcltest 2.1 -namespace import -force tcltest::test -namespace import -force tcltest::testsDirectory namespace import -force tcltest::configure +namespace import -force tcltest::testsDirectory configure -testdir [file join [pwd] [file dirname [info script]]] configure -loadfile [file join [testsDirectory] constraints.tcl] tcltest::loadTestedCommands -eval configure $argv - -foreach i [winfo children .] { - destroy $i -} -wm geometry . {} -raise . # Create entries in the option database to be sure that geometry options # like border width have predictable values. @@ -623,7 +615,7 @@ test scale-11.1 {ScaleEventProc procedure} { set x } {initial 1 0 {}} test scale-11.2 {ScaleEventProc procedure} { - eval destroy [winfo children .] + deleteWindows scale .s1 -bg #543210 rename .s1 .s2 set x {} @@ -634,7 +626,7 @@ test scale-11.2 {ScaleEventProc procedure} { } {.s1 #543210 {} {}} test scale-12.1 {ScaleCmdDeletedProc procedure} { - eval destroy [winfo children .] + deleteWindows scale .s1 rename .s1 {} list [info command .s*] [winfo children .] @@ -791,7 +783,7 @@ test scale-15.6 {ScaleVarProc procedure, don't call -command} { } {untouched 60} set l [interp hidden] -eval destroy [winfo children .] +deleteWindows test scale-16.1 {scale widget vs hidden commands} { catch {destroy .s} |