diff options
Diffstat (limited to 'tests/winWm.test')
-rw-r--r-- | tests/winWm.test | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/tests/winWm.test b/tests/winWm.test index e9c86c1..72f5919 100644 --- a/tests/winWm.test +++ b/tests/winWm.test @@ -9,7 +9,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: winWm.test,v 1.4 2000/01/12 11:45:36 hobbs Exp $ +# RCS: @(#) $Id: winWm.test,v 1.5 2002/06/22 10:13:26 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -229,18 +229,25 @@ test winWm-5.2 {UpdateGeometryInfo: menu resizing} {pcOnly} { set result } {50 50 0} +test winWm-6.1 {wm attributes} {pcOnly} { + destroy .t + toplevel .t + wm attributes .t +} {-disabled 0 -toolwindow 0 -topmost 0} +test winWm-6.2 {wm attributes} {pcOnly} { + destroy .t + toplevel .t + wm attributes .t -disabled +} {0} +test winWm-6.3 {wm attributes} {pcOnly} { + # This isn't quite the correct error message yet, but it works. + destroy .t + toplevel .t + list [catch {wm attributes .t -foo} msg] $msg +} {1 {wrong # arguments: must be "wm attributes window ?-disabled ?bool?? ?-toolwindow ?bool?? ?-topmost ?bool??"}} + +destroy .t + # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |