summaryrefslogtreecommitdiffstats
path: root/tests
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)
commita9603006eb631d2b02c0bffcbb2c284a0e2d0f23 (patch)
tree277deba3be364d1d97a550a4d38ed1ea7618df90 /tests
parent1acd9f166d4f1442a5192a1ef89e1d5a12ca0850 (diff)
downloadtk-a9603006eb631d2b02c0bffcbb2c284a0e2d0f23.zip
tk-a9603006eb631d2b02c0bffcbb2c284a0e2d0f23.tar.gz
tk-a9603006eb631d2b02c0bffcbb2c284a0e2d0f23.tar.bz2
Check that the parent has been mapped before calling RemapWindows. [Bug 2009788]
Diffstat (limited to 'tests')
-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