diff options
author | hobbs <hobbs@noemail.net> | 2006-05-29 21:53:15 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-05-29 21:53:15 (GMT) |
commit | fc95b2c25e4709ede0ae5138e9e714b80afab7e4 (patch) | |
tree | 555c90252ea8ee86d815c4c8596bc70c26d63ec7 /tests/listbox.test | |
parent | 2a33ecd95c0c54ad74925a3efb5979d776f4f79e (diff) | |
download | tk-fc95b2c25e4709ede0ae5138e9e714b80afab7e4.zip tk-fc95b2c25e4709ede0ae5138e9e714b80afab7e4.tar.gz tk-fc95b2c25e4709ede0ae5138e9e714b80afab7e4.tar.bz2 |
* tests/entry.test (entry-22.1):
* tests/listbox.test (listbox-6.15):
* generic/tkListbox.c (ListboxInsertSubCmd, ListboxDeleteSubCmd):
Ignore Tcl_SetVar2Ex failure of listVarName, similar to entry
widget handling. [Bug 1424513]
FossilOrigin-Name: a0656b4076973c5c5a7b95ca4a3742bcc43d346a
Diffstat (limited to 'tests/listbox.test')
-rw-r--r-- | tests/listbox.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/listbox.test b/tests/listbox.test index 8534e10..a3d43ea 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.25 2004/12/08 03:03:06 dgp Exp $ +# RCS: @(#) $Id: listbox.test,v 1.26 2006/05/29 21:53:16 hobbs Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -1107,6 +1107,18 @@ test listbox-6.14 {InsertEls procedure, check selection update} { .l2 insert 0 a .l2 curselection } [list 3 4 5] +test listbox-6.15 {InsertEls procedure, lost namespaced listvar} { + destroy .l2 + namespace eval test { variable foo {a b} } + listbox .l2 -listvar ::test::foo + namespace delete test + .l2 insert end c d + .l2 delete end + .l2 insert end e f + catch {set ::test::foo} result + list [.l2 get 0 end] [.l2 cget -listvar] $result +} [list [list a b c e f] ::test::foo \ + {can't read "::test::foo": no such variable}] test listbox-7.1 {DeleteEls procedure} { |