diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2010-01-20 23:43:50 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2010-01-20 23:43:50 (GMT) |
commit | 8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3 (patch) | |
tree | 57e880fe1efd95782a3cb841debb5d8e410fd021 /tests | |
parent | 545af346b6b7f4d2e3c1bfa931e01202c6c7808d (diff) | |
download | tk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.zip tk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.tar.gz tk-8653f8ec25290721bc6fac2a9c68bbff0a4c4eb3.tar.bz2 |
TIP #359: Extended window manager hints support for X11.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unixWm.test | 51 | ||||
-rw-r--r-- | tests/wm.test | 4 |
2 files changed, 51 insertions, 4 deletions
diff --git a/tests/unixWm.test b/tests/unixWm.test index b7e78dc..2a299f1 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.44 2007/12/13 15:27:55 dgp Exp $ +# RCS: @(#) $Id: unixWm.test,v 1.44.2.1 2010/01/20 23:43:52 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 diff --git a/tests/wm.test b/tests/wm.test index 05e0f65..e58a4a1 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.39.2.3 2010/01/06 09:30:21 dkf Exp $ +# RCS: @(#) $Id: wm.test,v 1.39.2.4 2010/01/20 23:43:52 patthoyts Exp $ # This file tests window manager interactions that work across platforms. # Window manager tests that only work on a specific platform should be placed @@ -139,7 +139,7 @@ test wm-attributes-1.2.3 {usage} -constraints win -returnCodes error -body { } -result {wrong # args: should be "wm attributes window ?-alpha ?double?? ?-transparentcolor ?color?? ?-disabled ?bool?? ?-fullscreen ?bool?? ?-toolwindow ?bool?? ?-topmost ?bool??"} test wm-attributes-1.2.4 {usage} -constraints {unix notAqua} -returnCodes error -body { wm attributes . _ -} -result {bad attribute "_": must be -alpha, -topmost, -zoomed, or -fullscreen} +} -result {bad attribute "_": must be -alpha, -topmost, -zoomed, -fullscreen, or -type} test wm-attributes-1.2.5 {usage} -constraints aqua -returnCodes error -body { wm attributes . _ } -result {bad attribute "_": must be -alpha, -modified, -notify, or -titlepath} |