summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2008-07-26 13:03:05 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2008-07-26 13:03:05 (GMT)
commit7232474f856a0a577d94e99bd79b4e822e5d9139 (patch)
tree277deba3be364d1d97a550a4d38ed1ea7618df90 /tests/wm.test
parent0715e077007dfc271958de4cfc95c695eae6cdb9 (diff)
downloadtk-7232474f856a0a577d94e99bd79b4e822e5d9139.zip
tk-7232474f856a0a577d94e99bd79b4e822e5d9139.tar.gz
tk-7232474f856a0a577d94e99bd79b4e822e5d9139.tar.bz2
Check that the parent has been mapped before calling RemapWindows. [Bug 2009788]
Diffstat (limited to 'tests/wm.test')
-rw-r--r--tests/wm.test29
1 files changed, 28 insertions, 1 deletions
diff --git a/tests/wm.test b/tests/wm.test
index f797a43..dd115b8 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.40 2008/07/23 23:24:25 nijtmans Exp $
+# RCS: @(#) $Id: wm.test,v 1.41 2008/07/26 13:03:06 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
@@ -2138,6 +2138,33 @@ test wm-manage-1.2 {unmanaging a toplevel} -setup {
deleteWindows
} -result {wm .t.t pack .t wm .t.t}
+test wm-forget-1.1 "bug #2009788: forget toplevel can cause crash" -body {
+ toplevel .parent
+ toplevel .parent.child
+ wm forget .parent.child
+ winfo exists .parent.child
+} -cleanup {
+ deleteWindows
+} -result {1}
+test wm-forget-1.2 "bug #2009788: forget toplevel can cause crash" -body {
+ toplevel .parent
+ update
+ toplevel .parent.child
+ wm forget .parent.child
+ winfo exists .parent.child
+} -cleanup {
+ deleteWindows
+} -result {1}
+test wm-forget-1.3 "bug #2009788: forget toplevel can cause crash" -body {
+ toplevel .parent
+ toplevel .parent.child
+ wm forget .parent.child
+ wm manage .parent.child
+ winfo exists .parent.child
+} -cleanup {
+ deleteWindows
+} -result {1}
+
# FIXME:
# Test delivery of virtual events to the WM. We could check to see if the