diff options
author | chengyemao <chengyemao> | 2005-02-15 03:22:10 (GMT) |
---|---|---|
committer | chengyemao <chengyemao> | 2005-02-15 03:22:10 (GMT) |
commit | f5ea741aa4fe93e60ef0eb65e3292e3e20692365 (patch) | |
tree | f7879d1d03edccdd9961327c7fbb495a9b5d0730 /tests/wm.test | |
parent | 7bc0a6c31d3387a07175365863f39b73885c3384 (diff) | |
download | tk-f5ea741aa4fe93e60ef0eb65e3292e3e20692365.zip tk-f5ea741aa4fe93e60ef0eb65e3292e3e20692365.tar.gz tk-f5ea741aa4fe93e60ef0eb65e3292e3e20692365.tar.bz2 |
Modified for the latest embedded/container window implementation for Windows platform
Diffstat (limited to 'tests/wm.test')
-rw-r--r-- | tests/wm.test | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/tests/wm.test b/tests/wm.test index a9d9c64..a214581 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.32 2005/02/09 10:19:31 dkf Exp $ +# RCS: @(#) $Id: wm.test,v 1.33 2005/02/15 03:22:10 chengyemao Exp $ # This file tests window manager interactions that work across # platforms. Window manager tests that only work on a specific @@ -229,6 +229,19 @@ test wm-deiconify-1.4 {usage} -setup { } -returnCodes error -cleanup { destroy .icon } -result {can't deiconify .icon: it is an icon for .t} +if {$tcl_platform(platform) == "windows"} { +# test embedded window for Windows +test wm-deiconify-1.5 {usage} -setup { + destroy .embed +} -body { + frame .t.f -container 1 + toplevel .embed -use [winfo id .t.f] + wm deiconify .embed +} -returnCodes error -cleanup { + destroy .t.f .embed +} -result {can't deiconify .embed: the container does not support the request} +} else { +# test embedded window for other platforms test wm-deiconify-1.5 {usage} -setup { destroy .embed } -body { @@ -238,6 +251,7 @@ test wm-deiconify-1.5 {usage} -setup { } -returnCodes error -cleanup { destroy .t.f .embed } -result {can't deiconify .embed: it is an embedded window} +} test wm-deiconify-2.1 {a window that has never been mapped\ should not be mapped by a call to deiconify} { @@ -468,6 +482,19 @@ test wm-iconify-2.3 {Misc errors} -setup { } -returnCodes error -cleanup { destroy .t2 } -result {can't iconify .t2: it is an icon for .t} +if {$tcl_platform(platform) == "windows"} { +# test embedded window for Windows +test wm-iconify-2.4 {Misc errors} -setup { + destroy .t2 +} -body { + frame .t.f -container 1 + toplevel .t2 -use [winfo id .t.f] + wm iconify .t2 +} -returnCodes error -cleanup { + destroy .t2 .r.f +} -result {can't iconify .t2: the container does not support the request} +} else { +# test embedded window for other platforms test wm-iconify-2.4 {Misc errors} -setup { destroy .t2 } -body { @@ -477,7 +504,7 @@ test wm-iconify-2.4 {Misc errors} -setup { } -returnCodes error -cleanup { destroy .t2 .r.f } -result {can't iconify .t2: it is an embedded window} - +} test wm-iconify-3.1 {} -setup { destroy .t2 } -body { @@ -1715,3 +1742,4 @@ test wm-deletion-epoch-1.1 {Deletion epoch on multiple displays} -constraints al deleteWindows cleanupTests return + |