summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-07-25 21:19:01 (GMT)
committerhobbs <hobbs>2002-07-25 21:19:01 (GMT)
commitc405da7b48b5b98e265a61df3590913ebc571bdd (patch)
tree98c02ac7c51ab626663578ecf3c18a172c0a96e6 /tests
parent1a2ea25789ca5a4a1abc69556705edeee9ab6d14 (diff)
downloadtk-c405da7b48b5b98e265a61df3590913ebc571bdd.zip
tk-c405da7b48b5b98e265a61df3590913ebc571bdd.tar.gz
tk-c405da7b48b5b98e265a61df3590913ebc571bdd.tar.bz2
* tests/spinbox.test: added spinbox-22.[1-3]
* generic/tkEntry.c (ConfigureEntry): made the textvariable value take precedence over changed -from/-to values, unless it must be constrained. [Bug #559078]
Diffstat (limited to 'tests')
-rw-r--r--tests/spinbox.test17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 0a576d3..74c81a6 100644
--- a/tests/spinbox.test
+++ b/tests/spinbox.test
@@ -4,7 +4,7 @@
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: spinbox.test,v 1.3 2002/07/13 20:28:35 dgp Exp $
+# RCS: @(#) $Id: spinbox.test,v 1.4 2002/07/25 21:19:01 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1557,6 +1557,21 @@ test spinbox-21.1 {spinbox button, out of range checking} {
} {-10 20 20 -10 -10 -10 20 20 18 -10 -10 -8 -10 -8 -10 20 18 20}
+test spinbox-22.1 {spinbox config, -from changes SF bug 559078} {
+ set val 5
+ destroy .s
+ spinbox .s -from 1 -to 10 -textvariable val
+ set val
+} {5}
+test spinbox-22.2 {spinbox config, -from changes SF bug 559078} {
+ .s configure -from 3 -to 10
+ set val
+} {5}
+test spinbox-22.3 {spinbox config, -from changes SF bug 559078} {
+ .s configure -from 6 -to 10
+ set val
+} {6}
+
destroy .e
catch {unset ::e ::vVals}