summaryrefslogtreecommitdiffstats
path: root/tests/listbox.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2006-05-29 21:52:47 (GMT)
committerhobbs <hobbs@noemail.net>2006-05-29 21:52:47 (GMT)
commit6c18253691497c548986ae2a71a9e37f75870937 (patch)
treee8601b4d9d9447943bc935ddbbb8246e8ed71a56 /tests/listbox.test
parentcab61b69b202655fddecb6bd517c22cd718461d4 (diff)
downloadtk-6c18253691497c548986ae2a71a9e37f75870937.zip
tk-6c18253691497c548986ae2a71a9e37f75870937.tar.gz
tk-6c18253691497c548986ae2a71a9e37f75870937.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: 18780b1c4f4abdbd9ed9662513ee984e64ad568b
Diffstat (limited to 'tests/listbox.test')
-rw-r--r--tests/listbox.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/listbox.test b/tests/listbox.test
index a6f858c..29e629e 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.21.2.1 2003/10/13 00:55:25 hobbs Exp $
+# RCS: @(#) $Id: listbox.test,v 1.21.2.2 2006/05/29 21:52:47 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1109,6 +1109,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, bug 1424513} {
+ 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} {