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/window.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/window.test')
-rw-r--r-- | tests/window.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/window.test b/tests/window.test index 2de63a0..3b5ede6 100644 --- a/tests/window.test +++ b/tests/window.test @@ -5,11 +5,12 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: window.test,v 1.4 1999/04/16 01:51:44 stanton Exp $ +# RCS: @(#) $Id: window.test,v 1.5 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 .] { destroy $i @@ -80,8 +81,7 @@ test window-2.3 {Tk_DestroyWindow procedure, destroy handler deletes parent} { } {} # Some tests require the testmenubar command -set ::tcltest::testConfig(testmenubar) \ - [expr {[info commands testmenubar] != {}}] +testConstraint testmenubar [llength [info commands testmenubar]] test window-3.1 {Tk_MakeWindowExist procedure, stacking order and menubars} \ {unixOnly testmenubar} { |