diff options
author | dgp@users.sourceforge.net <dgp> | 2002-07-12 13:40:58 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2002-07-12 13:40:58 (GMT) |
commit | d6221cd8a9e69a5623cba5aab41cbba867c614aa (patch) | |
tree | d8e183b36df3072890d7f699cb3530b8aa5e7777 /tests/window.test | |
parent | 026bda5e161b3e9a935354888b8189f700c1b8a3 (diff) | |
download | tk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.zip tk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.tar.gz tk-d6221cd8a9e69a5623cba5aab41cbba867c614aa.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} { |