diff options
Diffstat (limited to 'tests/unixWm.test')
-rw-r--r-- | tests/unixWm.test | 51 |
1 files changed, 49 insertions, 2 deletions
diff --git a/tests/unixWm.test b/tests/unixWm.test index c55578b..6f580d8 100644 --- a/tests/unixWm.test +++ b/tests/unixWm.test @@ -7,7 +7,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: unixWm.test,v 1.46 2008/10/08 18:57:47 dgp Exp $ +# RCS: @(#) $Id: unixWm.test,v 1.47 2010/01/19 01:27:41 patthoyts Exp $ package require tcltest 2.2 eval tcltest::configure $argv @@ -2446,7 +2446,7 @@ test unixWm-60.1 {wm attributes - test} -constraints unix -body { destroy .t toplevel .t wm attributes .t -} -result [list -alpha 1.0 -topmost 0 -zoomed 0 -fullscreen 0] +} -result [list -alpha 1.0 -topmost 0 -zoomed 0 -fullscreen 0 -type {}] test unixWm-60.2 {wm attributes - test} -constraints unix -body { destroy .t @@ -2486,6 +2486,53 @@ test unixWm-61.2 {Tk_WmCmd procedure, "iconphoto" option} unix { image delete blank16 blank32 } {} +test unixWm-62.0 {wm attributes -type void} -constraints unix -setup { + destroy .t + toplevel .t +} -body { + wm attributes .t -type {} +} -cleanup { + destroy .t +} -result {} + +test unixWm-62.1 {wm attributes -type name} -constraints unix -setup { + destroy .t + toplevel .t +} -body { + wm attributes .t -type dialog +} -cleanup { + destroy .t +} -result {} + +test unixWm-62.1 {wm attributes -type name} -constraints unix -setup { + destroy .t + toplevel .t +} -body { + tkwait visibility .t + wm attributes .t -type dialog +} -cleanup { + destroy .t +} -result {} + +test unixWm-62.2 {wm attributes -type list} -constraints unix -setup { + destroy .t + toplevel .t +} -body { + wm attributes .t -type {xyzzy dialog} +} -cleanup { + destroy .t +} -result {} + +test unixWm-62.2 {wm attributes -type list} -constraints unix -setup { + destroy .t + toplevel .t +} -body { + tkwait visibility .t + wm attributes .t -type {xyzzy dialog} +} -cleanup { + destroy .t +} -result {} + # cleanup destroy .t cleanupTests |