diff options
author | hobbs <hobbs@noemail.net> | 2006-05-29 21:52:47 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-05-29 21:52:47 (GMT) |
commit | 6c18253691497c548986ae2a71a9e37f75870937 (patch) | |
tree | e8601b4d9d9447943bc935ddbbb8246e8ed71a56 /tests/entry.test | |
parent | cab61b69b202655fddecb6bd517c22cd718461d4 (diff) | |
download | tk-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/entry.test')
-rw-r--r-- | tests/entry.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/entry.test b/tests/entry.test index 101a0c6..4030152 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.14 2003/02/25 00:46:41 hobbs Exp $ +# RCS: @(#) $Id: entry.test,v 1.14.2.1 2006/05/29 21:52:47 hobbs Exp $ package require tcltest 2.1 namespace import -force tcltest::configure @@ -1613,6 +1613,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, |