summaryrefslogtreecommitdiff
path: root/tk/tests/get.test
diff options
context:
space:
mode:
Diffstat (limited to 'tk/tests/get.test')
-rw-r--r--tk/tests/get.test13
1 files changed, 6 insertions, 7 deletions
diff --git a/tk/tests/get.test b/tk/tests/get.test
index 0bfa5b9af9c..3adabbba65e 100644
--- a/tk/tests/get.test
+++ b/tk/tests/get.test
@@ -8,13 +8,12 @@
#
# RCS: @(#) $Id$
-if {[lsearch [namespace children] ::tcltest] == -1} {
- source [file join [pwd] [file dirname [info script]] defs.tcl]
-}
-
-eval destroy [winfo children .]
-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
button .b
test get-1.1 {Tk_GetAnchorFromObj} {