diff options
Diffstat (limited to 'tk/tests/obj.test')
-rw-r--r-- | tk/tests/obj.test | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tk/tests/obj.test b/tk/tests/obj.test index 8edf93bc826..bf983855cde 100644 --- a/tk/tests/obj.test +++ b/tk/tests/obj.test @@ -7,15 +7,12 @@ # # RCS: @(#) $Id$ -if {[lsearch [namespace children] ::tcltest] == -1} { - source [file join [pwd] [file dirname [info script]] defs.tcl] -} - -foreach i [winfo children .] { - destroy $i -} -wm geometry . {} -raise . +package require tcltest 2.1 +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 test obj-1.1 {TkGetPixelsFromObj} { } {} @@ -31,7 +28,7 @@ test obj-4.1 {SetPixelFromAny} { -eval destroy [winfo children .] +deleteWindows # cleanup ::tcltest::cleanupTests |