diff options
author | hobbs <hobbs@noemail.net> | 2001-04-03 04:41:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2001-04-03 04:41:07 (GMT) |
commit | 246405dfa7b12083dc2c309966bdfb92c9f5cd4c (patch) | |
tree | 0ee52a4755cfc619e731dbddf8f550b6ff5a1e0d /tests/listbox.test | |
parent | 5c21bfd464cf6d8cb114fb2fe65a8eeb8b227350 (diff) | |
download | tk-246405dfa7b12083dc2c309966bdfb92c9f5cd4c.zip tk-246405dfa7b12083dc2c309966bdfb92c9f5cd4c.tar.gz tk-246405dfa7b12083dc2c309966bdfb92c9f5cd4c.tar.bz2 |
* tests/listbox.test: added test listbox-27.1, delete during
scrollbar update
* generic/tkListbox.c (DestroyListbox, ListboxEventProc):
corrected listbox to make proper use of Tcl_EventuallyFree and
protect against unusual listbox deletion.
FossilOrigin-Name: 484b8a6cf3a4d5698be30780bbd1a6094c1394a8
Diffstat (limited to 'tests/listbox.test')
-rw-r--r-- | tests/listbox.test | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/tests/listbox.test b/tests/listbox.test index 45443f6..8d3d75e 100644 --- a/tests/listbox.test +++ b/tests/listbox.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: listbox.test,v 1.13 2000/07/28 16:34:55 ericm Exp $ +# RCS: @(#) $Id: listbox.test,v 1.14 2001/04/03 04:41:08 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -2101,12 +2101,20 @@ test listbox-26.5 {listbox disabled state disallows active modification} { } 0 resetGridInfo -catch {destroy .l2} -catch {destroy .t} -catch {destroy .e} -catch {destroy .partial} +eval destroy [winfo children .] option clear +test listbox-27.1 {widget deletion while active} { + destroy .l + pack [listbox .l] + update + .l configure -cursor xterm -xscrollcommand { destroy .l } + update idle + winfo exists .l +} 0 + +eval destroy [winfo children .] + # cleanup ::tcltest::cleanupTests return |