summaryrefslogtreecommitdiffstats
path: root/tests/entry.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2006-05-29 21:53:15 (GMT)
committerhobbs <hobbs>2006-05-29 21:53:15 (GMT)
commita7c8588873469c05f9182cd88d68fce9eec6ebe5 (patch)
tree555c90252ea8ee86d815c4c8596bc70c26d63ec7 /tests/entry.test
parent44ccf98fa2005473a580551f5cd3e2ed43075fdc (diff)
downloadtk-a7c8588873469c05f9182cd88d68fce9eec6ebe5.zip
tk-a7c8588873469c05f9182cd88d68fce9eec6ebe5.tar.gz
tk-a7c8588873469c05f9182cd88d68fce9eec6ebe5.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]
Diffstat (limited to 'tests/entry.test')
-rw-r--r--tests/entry.test14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/entry.test b/tests/entry.test
index 7732e8a..3d10e72 100644
--- a/tests/entry.test
+++ b/tests/entry.test
@@ -6,7 +6,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: entry.test,v 1.19 2004/12/04 00:04:41 dkf Exp $
+# RCS: @(#) $Id: entry.test,v 1.20 2006/05/29 21:53:16 hobbs Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -1610,6 +1610,18 @@ test entry-21.1 {selection present while disabled, bug 637828} {
lappend out [.e selection present] [selection get]
} {1 1 345}
+test entry-22.1 {lost namespaced textvar} {
+ destroy .e
+ namespace eval test { variable foo {a b} }
+ entry .e -textvariable ::test::foo
+ namespace delete test
+ .e insert end "more stuff"
+ .e delete 5 end
+ catch {set ::test::foo} result
+ list [.e get] [.e cget -textvar] $result
+} [list "a bmo" ::test::foo \
+ {can't read "::test::foo": no such variable}]
+
destroy .e
# XXX Still need to write tests for EntryBlinkProc, EntryFocusProc,