summaryrefslogtreecommitdiffstats
path: root/tests/menu.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-08-30 01:51:42 (GMT)
committerhobbs <hobbs>2001-08-30 01:51:42 (GMT)
commitd45ee90a6079dd3725cbac6ad9791e316668a7fc (patch)
treebecbe0c994ea4eeed18765326efdf7f8fb2a8053 /tests/menu.test
parent96adcf5aa5e6fac1276e40be17d81a0b366b4828 (diff)
downloadtk-d45ee90a6079dd3725cbac6ad9791e316668a7fc.zip
tk-d45ee90a6079dd3725cbac6ad9791e316668a7fc.tar.gz
tk-d45ee90a6079dd3725cbac6ad9791e316668a7fc.tar.bz2
corrected to use testConfig constraints in
the TK_ALT_DISPLAY case
Diffstat (limited to 'tests/menu.test')
-rw-r--r--tests/menu.test23
1 files changed, 11 insertions, 12 deletions
diff --git a/tests/menu.test b/tests/menu.test
index 33995b0..a298e79 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -5,7 +5,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: menu.test,v 1.7 2001/08/01 16:21:12 dgp Exp $
+# RCS: @(#) $Id: menu.test,v 1.8 2001/08/30 01:51:42 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -24,6 +24,8 @@ set ::tcltest::testConfig(nonUnixUserInteraction) \
[expr {$::tcltest::testConfig(userInteraction) || \
$::tcltest::testConfig(unixOnly)}]
+set ::tcltest::testConfig(altDisplay) [info exists env(TK_ALT_DISPLAY)]
+
proc deleteWindows {} {
foreach i [winfo children .] {
catch [destroy $i]
@@ -2441,17 +2443,14 @@ test menu-33.1 {menu vs command hiding} {
# creating menus on two different screens then deleting the
# menu from the first screen crashes Tk8.3.1
#
-test menu-35.1 {menus on multiple screens - crashes tk8.3.1, Bug 5454} {
- if {[info exists ::env(TK_ALT_DISPLAY)]} {
- toplevel .one
- menu .one.m
- toplevel .two -screen $::env(TK_ALT_DISPLAY)
- menu .two.m
- destroy .one
- destroy .two
- } else {
- puts "skipping: Multi-screen tests requiring TK_ALT_DISPLAY..."
- }
+test menu-35.1 {menus on multiple screens - crashes tk8.3.1, Bug 5454} \
+ {altDisplay} {
+ toplevel .one
+ menu .one.m
+ toplevel .two -screen $::env(TK_ALT_DISPLAY)
+ menu .two.m
+ destroy .one
+ destroy .two
} {}
# cleanup