summaryrefslogtreecommitdiffstats
path: root/tests/entry.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/entry.test')
-rw-r--r--tests/entry.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/entry.test b/tests/entry.test
index 4cc9218..9c30b00 100644
--- a/tests/entry.test
+++ b/tests/entry.test
@@ -3493,6 +3493,15 @@ test entry-23.1 {error in trace proc attached to the textvariable} -setup {
} -result [list {can't set "myvar": Intentional error here!} \
{can't set "myvar": Intentional error here!}]
+test entry-24.1 {textvariable lives in a non-existing namespace} -setup {
+ destroy .e
+} -body {
+ catch {entry .e -textvariable thisnsdoesntexist::myvar} result1
+ set result1
+} -cleanup {
+ destroy .e
+} -result {can't trace "thisnsdoesntexist::myvar": parent namespace doesn't exist}
+
# Gathered comments about lacks
# XXX Still need to write tests for EntryBlinkProc, EntryFocusProc,
# and EntryTextVarProc.