diff options
author | mdejong <mdejong> | 2004-10-29 22:34:05 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2004-10-29 22:34:05 (GMT) |
commit | 4dfa2a7e6376de3e5ff062c9a0cde73050d7a9a1 (patch) | |
tree | 8321fd062ef5658f2a248a3978bd02b0ae56bb38 /tests | |
parent | 0baaad24d5ecfaf77ee97945c29fe7e75f10f61c (diff) | |
download | tk-4dfa2a7e6376de3e5ff062c9a0cde73050d7a9a1.zip tk-4dfa2a7e6376de3e5ff062c9a0cde73050d7a9a1.tar.gz tk-4dfa2a7e6376de3e5ff062c9a0cde73050d7a9a1.tar.bz2 |
* tests/wm.test: Add Win32 test cases for attributes
subcommand.
* win/tkWinWm.c (WmAttributesCmd): Fixup broken
option processing logic for attributes subcommand.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wm.test | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/wm.test b/tests/wm.test index 9534fa7..215f4df 100644 --- a/tests/wm.test +++ b/tests/wm.test @@ -7,7 +7,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: wm.test,v 1.21.2.2 2004/10/05 22:27:27 hobbs Exp $ +# RCS: @(#) $Id: wm.test,v 1.21.2.3 2004/10/29 22:34:06 mdejong Exp $ # This file tests window manager interactions that work across # platforms. Window manager tests that only work on a specific @@ -134,7 +134,15 @@ test wm-attributes-1.2.1 {usage} {pcOnly} { list [catch {wm attributes . _} err] $err } {1 {wrong # args: should be "wm attributes window ?-alpha ?double?? ?-disabled ?bool?? ?-toolwindow ?bool?? ?-topmost ?bool??"}} -test wm-attributes-1.2.2 {usage} {macOrUnix} { +test wm-attributes-1.2.2 {usage} {pcOnly} { + list [catch {wm attributes . -alpha 1.0 -disabled} err] $err +} {1 {wrong # args: should be "wm attributes window ?-alpha ?double?? ?-disabled ?bool?? ?-toolwindow ?bool?? ?-topmost ?bool??"}} + +test wm-attributes-1.2.3 {usage} {pcOnly} { + list [catch {wm attributes . -to} err] $err +} {1 {wrong # args: should be "wm attributes window ?-alpha ?double?? ?-disabled ?bool?? ?-toolwindow ?bool?? ?-topmost ?bool??"}} + +test wm-attributes-1.2.4 {usage} {macOrUnix} { list [catch {wm attributes . _} err] $err } {1 {wrong # args: should be "wm attributes window"}} @@ -1624,6 +1632,13 @@ test wm-state-2.17 {state change after map} { wm state .t } {normal} +test wm-state-2.18 {state change after map} {pcOnly} { + deleteWindows + toplevel .t + update + wm state .t zoomed + wm state .t +} {zoomed} test wm-withdraw-1.1 {usage} { list [catch {wm withdraw} err] $err |