diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2008-07-26 13:03:05 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2008-07-26 13:03:05 (GMT) |
commit | 4a1f0034dfc4fb19946e55eb85c55978943d93b7 (patch) | |
tree | 277deba3be364d1d97a550a4d38ed1ea7618df90 /tests/wm.test | |
parent | c3574e6a659de1cae335c79d81865b60f67aea49 (diff) | |
download | tk-4a1f0034dfc4fb19946e55eb85c55978943d93b7.zip tk-4a1f0034dfc4fb19946e55eb85c55978943d93b7.tar.gz tk-4a1f0034dfc4fb19946e55eb85c55978943d93b7.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.test | 29 |
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 |