diff options
Diffstat (limited to 'tests/unixMenu.test')
-rw-r--r-- | tests/unixMenu.test | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/unixMenu.test b/tests/unixMenu.test index 44b1a06..802a7c2 100644 --- a/tests/unixMenu.test +++ b/tests/unixMenu.test @@ -1,15 +1,14 @@ # This file is a Tcl script to test menus in Tk. It is -# organized in the standard fashion for Tcl tests. +# organized in the standard fashion for Tcl tests. This +# file tests the Macintosh-specific features of the menu +# system. # # Copyright (c) 1995-1996 Sun Microsystems, Inc. # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. package require tcltest 2.1 -namespace import -force tcltest::configure -namespace import -force tcltest::testsDirectory -configure -testdir [file join [pwd] [file dirname [info script]]] -configure -loadfile [file join [testsDirectory] constraints.tcl] +eval tcltest::configure $argv tcltest::loadTestedCommands test unixMenu-1.1 {TkpNewMenu - normal menu} unix { @@ -302,7 +301,7 @@ test unixMenu-17.1 {GetMenuSeparatorGeometry} unix { list [catch {tk::TearOffMenu .m1 40 40}] [destroy .m1] } {0 {}} -test unixMenu-18.1 {GetTearoffEntryGeometry} unix { +test unixMenu-18.1 {GetTearoffEntryGeometry} {unix nonUnixUserInteraction} { catch {destroy .m1} menubutton .mb -text "test" -menu .mb.m menu .mb.m @@ -552,7 +551,7 @@ test unixMenu-20.1 {DrawTearoffEntry - menubar} unix { . configure -menu .m1 list [catch {update} msg] $msg [. configure -menu ""] [destroy .m1] } {0 {} {} {}} -test unixMenu-20.2 {DrawTearoffEntry - non-menubar} unix { +test unixMenu-20.2 {DrawTearoffEntry - non-menubar} {unix nonUnixUserInteraction} { catch {destroy .m1} menu .m1 .m1 add command -label foo @@ -818,7 +817,7 @@ test unixMenu-25.4 {TkpComputeStandardMenuGeometry - separator} unix { .m1 add separator list [update idletasks] [destroy .m1] } {{} {}} -test unixMenu-25.5 {TkpComputeStandardMenuGeometry - tearoff entry} {unixOnly} { +test unixMenu-25.5 {TkpComputeStandardMenuGeometry - tearoff entry} {unix nonUnixUserInteraction} { catch {destroy .m1} menubutton .mb -text "test" -menu .mb.m menu .mb.m @@ -891,7 +890,7 @@ test unixMenu-25.14 {TkpComputeStandardMenuGeometry - second indicator less or e .m1 invoke 2 list [update idletasks] [destroy .m1] [image delete image1] } {{} {} {}} -test unixMenu-25.15 {TkpComputeStandardMenuGeometry - second indicator larger } {unixOnly testImageType} { +test unixMenu-25.15 {TkpComputeStandardMenuGeometry - second indicator larger } {unix testImageType} { catch {destroy .m1} catch {image delete image1} image create test image1 @@ -945,5 +944,5 @@ test unixMenu-26.1 {TkpMenuInit - nothing to do} {} {} # cleanup deleteWindows -::tcltest::cleanupTests +cleanupTests return |