diff options
author | mdejong <mdejong@noemail.net> | 2004-10-29 22:28:30 (GMT) |
---|---|---|
committer | mdejong <mdejong@noemail.net> | 2004-10-29 22:28:30 (GMT) |
commit | 6d854e3966e2b032a9e9383f53797d08a32b1c44 (patch) | |
tree | c52ced77c155992f8ae1b74ac0502013b47a3acc /tests/wm.test | |
parent | b21045b61c15e74b7b34ec3783d67a78260378e2 (diff) | |
download | tk-6d854e3966e2b032a9e9383f53797d08a32b1c44.zip tk-6d854e3966e2b032a9e9383f53797d08a32b1c44.tar.gz tk-6d854e3966e2b032a9e9383f53797d08a32b1c44.tar.bz2 |
* tests/wm.test: Add Win32 test cases for attributes
subcommand.
* win/tkWinWm.c (WmAttributesCmd): Fixup broken
option processing logic for attributes subcommand.
FossilOrigin-Name: ad5c91fdde6b8fff79a32e6743178a978da6b1cd
Diffstat (limited to 'tests/wm.test')
-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 ff75136..e3c5c92 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.29 2004/10/05 22:04:46 hobbs Exp $ +# RCS: @(#) $Id: wm.test,v 1.30 2004/10/29 22:28:30 mdejong Exp $ # This file tests window manager interactions that work across # platforms. Window manager tests that only work on a specific @@ -131,7 +131,15 @@ test wm-attributes-1.2.1 {usage} win { 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} unix { +test wm-attributes-1.2.2 {usage} win { + 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} win { + 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} unix { list [catch {wm attributes . _} err] $err } {1 {wrong # args: should be "wm attributes window"}} @@ -1756,6 +1764,13 @@ test wm-state-2.17 {state change after map} { wm state .t } {normal} +test wm-state-2.18 {state change after map} win { + deleteWindows + toplevel .t + update + wm state .t zoomed + wm state .t +} {zoomed} test wm-withdraw-1.1 {usage} { list [catch {wm withdraw} err] $err |