diff options
Diffstat (limited to 'tests/textIndex.test')
-rw-r--r-- | tests/textIndex.test | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/textIndex.test b/tests/textIndex.test index 26dfc78..2973c8b 100644 --- a/tests/textIndex.test +++ b/tests/textIndex.test @@ -6,16 +6,20 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: textIndex.test,v 1.5 1999/04/21 21:53:30 rjohnson Exp $ - -if {[lsearch [namespace children] ::tcltest] == -1} { - source [file join [pwd] [file dirname [info script]] defs.tcl] -} +# RCS: @(#) $Id: textIndex.test,v 1.6 2002/07/12 21:08:49 dgp Exp $ + +package require tcltest 2.1 +namespace import -force tcltest::test +namespace import -force tcltest::testConstraint +namespace import -force tcltest::testsDirectory +namespace import -force tcltest::configure +configure -testdir [file join [pwd] [file dirname [info script]]] +configure -loadfile [file join [testsDirectory] constraints.tcl] +tcltest::loadTestedCommands +eval configure $argv # Some tests require the testtext command - -set ::tcltest::testConfig(testtext) \ - [expr {[info commands testtext] != {}}] +testConstraint testtext [llength [info commands testtext]] catch {destroy .t} text .t -font {Courier -12} -width 20 -height 10 |