summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-07 21:07:31 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-07 21:07:31 (GMT)
commit23afeb02af6706ac255b77e35f2cc644d2c4e524 (patch)
tree07551c29b916a8034fe7542f00348f47e989088f /tests
parent1e12a7a6bfefbc1315f92dfb45a245d831328e4e (diff)
downloadtk-23afeb02af6706ac255b77e35f2cc644d2c4e524.zip
tk-23afeb02af6706ac255b77e35f2cc644d2c4e524.tar.gz
tk-23afeb02af6706ac255b77e35f2cc644d2c4e524.tar.bz2
Added test case wm-forget-2 related to test the fix for bug [e9112ef96e] (cherrypicked [a6c6d3bd08])
Diffstat (limited to 'tests')
-rw-r--r--tests/wm.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/wm.test b/tests/wm.test
index 1aa0779..afcc2cd 100644
--- a/tests/wm.test
+++ b/tests/wm.test
@@ -2276,6 +2276,32 @@ test wm-forget-1.4 "pack into unmapped toplevel causes crash" -body {
deleteWindows
} -result {}
+test wm-forget-2 {bug [e9112ef96e] - [wm forget] doesn't completely} -setup {
+ catch {destroy .l .f.b .f}
+ set res {}
+} -body {
+ label .l -text "Top Dot"
+ frame .f
+ button .f.b -text Hello -command "puts Hello!"
+ pack .l -side top
+ pack .f.b
+ pack .f -side bottom
+ update
+ set res [winfo manager .f]
+ pack forget .f
+ update
+ lappend res [winfo manager .f]
+ wm manage .f
+ update
+ lappend res [winfo manager .f]
+ wm forget .f
+ update
+ lappend res [winfo manager .f]
+} -cleanup {
+ destroy .l .f.b .f
+ unset res
+} -result {pack {} wm {}}
+
# FIXME:
# Test delivery of virtual events to the WM. We could check to see if the