diff options
author | dgp <dgp@users.sourceforge.net> | 2002-07-12 13:40:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-07-12 13:40:58 (GMT) |
commit | 92b5df1f4c8a5885e387c9f91b89b4ac70d00abd (patch) | |
tree | d8e183b36df3072890d7f699cb3530b8aa5e7777 /tests/winfo.test | |
parent | 6501cfee251537a0baebe03094d48ade46cdb49d (diff) | |
download | tk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.zip tk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.tar.gz tk-92b5df1f4c8a5885e387c9f91b89b4ac70d00abd.tar.bz2 |
* Converted several files in the Tk test suite for testing by
tcltest 2.1.
Diffstat (limited to 'tests/winfo.test')
-rw-r--r-- | tests/winfo.test | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/winfo.test b/tests/winfo.test index a1344c9..1916cfa 100644 --- a/tests/winfo.test +++ b/tests/winfo.test @@ -6,11 +6,12 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: winfo.test,v 1.6 2002/06/14 07:17:53 mdejong Exp $ +# RCS: @(#) $Id: winfo.test,v 1.7 2002/07/12 13:41:01 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::test +namespace import -force tcltest::testConstraint +eval tcltest::configure $argv foreach i [winfo children .] { catch {destroy $i} @@ -19,8 +20,7 @@ wm geometry . {} raise . # Some tests require the testwrapper command -set ::tcltest::testConfig(testwrapper) \ - [expr {[info commands testwrapper] != {}}] +testConstraint testwrapper [llength [info commands testwrapper]] # eatColors -- # Creates a toplevel window and allocates enough colors in it to @@ -92,8 +92,8 @@ test winfo-2.7 {"winfo atom" command} { } SECONDARY # Some tests require the "pseudocolor" visual class. -set ::tcltest::testConfig(pseudocolor) \ - [expr {([winfo depth .] == 8) && ([winfo visual .] == "pseudocolor")}] +testConstraint pseudocolor [expr { ([winfo depth .] == 8) + && ([winfo visual .] == "pseudocolor")}] test winfo-3.1 {"winfo colormapfull" command} {pseudocolor} { list [catch {winfo colormapfull} msg] $msg |