summaryrefslogtreecommitdiffstats
path: root/tests/window.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/window.test')
-rw-r--r--tests/window.test12
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} {