diff options
Diffstat (limited to 'tk/tests/winFont.test')
-rw-r--r-- | tk/tests/winFont.test | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/tk/tests/winFont.test b/tk/tests/winFont.test index 9e8949a7d30..d1776d8a90e 100644 --- a/tk/tests/winFont.test +++ b/tk/tests/winFont.test @@ -12,9 +12,12 @@ # # RCS: @(#) $Id$ -if {[lsearch [namespace children] ::tcltest] == -1} { - source [file join [pwd] [file dirname [info script]] defs.tcl] -} +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 catch {destroy .b} catch {font delete xyz} @@ -183,15 +186,3 @@ test winfont-7.4 {AllocFont procedure: extract info from textmetric} {pcOnly} { destroy .b ::tcltest::cleanupTests return - - - - - - - - - - - - |