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/macFont.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/macFont.test')
-rw-r--r-- | tests/macFont.test | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/macFont.test b/tests/macFont.test index 972f81d..f4e3083 100644 --- a/tests/macFont.test +++ b/tests/macFont.test @@ -10,11 +10,14 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: macFont.test,v 1.4 2001/09/21 20:38:18 hobbs Exp $ +# RCS: @(#) $Id: macFont.test,v 1.5 2002/07/13 20:28:35 dgp Exp $ -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} toplevel .b @@ -39,11 +42,11 @@ proc getsize {} { return "[winfo reqwidth .b.l] [winfo reqheight .b.l]" } -set ::tcltest::testConfig(gothic) 0 +testConstraint gothic 0 set gothic {gothic 12} set mx [font measure $gothic \u4e4e] if {[font actual $gothic -family] != [font actual system -family]} { - set ::tcltest::testConfig(gothic) 1 + testConstraint gothic 1 } test macFont-1.1 {TkpFontPkgInit} {macOnly} { |