summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-06 09:30:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-06 09:30:21 (GMT)
commitdf9501bba1307cd8d762718fdb94dcf66309c717 (patch)
tree12ef01660f9d3e503753c803b43054dc9469b63b /tests/wm.test
parent8d39ac13676ca900e69e4abfdf4604601c51fbf3 (diff)
downloadtk-df9501bba1307cd8d762718fdb94dcf66309c717.zip
tk-df9501bba1307cd8d762718fdb94dcf66309c717.tar.gz
tk-df9501bba1307cd8d762718fdb94dcf66309c717.tar.bz2
[Bug 1163496]: Allow windows to be set to be transients for withdrawn masters
correctly.
Diffstat (limited to 'tests/wm.test')
-rw-r--r--tests/wm.test19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/wm.test b/tests/wm.test
index e6905ec..05e0f65 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.2 2008/11/15 00:37:30 patthoyts Exp $
+# RCS: @(#) $Id: wm.test,v 1.39.2.3 2010/01/06 09:30:21 dkf Exp $
# This file tests window manager interactions that work across platforms.
# Window manager tests that only work on a specific platform should be placed
@@ -1893,6 +1893,23 @@ test wm-transient-7.5 {Reassign transient, destroy transient} -body {
deleteWindows
}
+test wm-transient-8.1 {transient to withdrawn window, Bug 1163496} -setup {
+ deleteWindows
+ set result {}
+} -body {
+ # Verifies that transients stay on top of their masters, even if they were
+ # made transients when those masters were withdrawn.
+ toplevel .t1; wm withdraw .t1; update
+ toplevel .t2; wm transient .t2 .t1; update
+ lappend result [winfo ismapped .t1] [winfo ismapped .t2]
+ wm deiconify .t1; update
+ lappend result [winfo ismapped .t1] [winfo ismapped .t2]
+ raise .t1; update
+ lappend result [lsearch -all -inline -glob [wm stackorder .] ".t?"]
+} -cleanup {
+ deleteWindows
+} -result {0 0 1 1 {.t1 .t2}}
+
### wm state ###
test wm-state-1.1 {usage} -returnCodes error -body {