summaryrefslogtreecommitdiffstats
path: root/tests/spinbox.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-12-10 17:21:07 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-12-10 17:21:07 (GMT)
commit2f823dce353535fda34fff8883078e034675eec3 (patch)
tree737ac563660bf78cc4be9fa6469e30147a9fb64e /tests/spinbox.test
parent4ffa86ad7e16a62ad85e9fcaeeeeec8b054b66e3 (diff)
downloadtk-2f823dce353535fda34fff8883078e034675eec3.zip
tk-2f823dce353535fda34fff8883078e034675eec3.tar.gz
tk-2f823dce353535fda34fff8883078e034675eec3.tar.bz2
Fixed bug [1700065] - error in trace proc on textvariable doesn't trigger bgerror
Diffstat (limited to 'tests/spinbox.test')
-rw-r--r--tests/spinbox.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 88e4d44..e8f027b 100644
--- a/tests/spinbox.test
+++ b/tests/spinbox.test
@@ -1568,6 +1568,21 @@ test spinbox-22.3 {spinbox config, -from changes SF bug 559078} {
set val
} {6}
+test spinbox-23.1 {error in trace proc attached to the textvariable} {
+ destroy .s
+ trace variable myvar w traceit
+ proc traceit args {error "Intentional error here!"}
+ spinbox .s -textvariable myvar -from 1 -to 10
+ catch {.s set mystring} result1
+ catch {.s insert 0 mystring} result2
+ catch {.s delete 0} result3
+ catch {.s invoke buttonup} result4
+ list $result1 $result2 $result3 $result4
+} [list {can't set "myvar": Intentional error here!} \
+ {can't set "myvar": Intentional error here!} \
+ {can't set "myvar": Intentional error here!} \
+ {can't set "myvar": Intentional error here!}]
+
destroy .e
catch {unset ::e ::vVals}