summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-12-11 10:44:56 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-12-11 10:44:56 (GMT)
commit656997252224e4bbfea9417b0ab6d1eca66f5a02 (patch)
tree4626cfab93b5296bd9faee0c765367ddfa898799 /tests
parent0cade60a1248ed4fe38e664d3d669500da3f6bf0 (diff)
downloadtk-656997252224e4bbfea9417b0ab6d1eca66f5a02.zip
tk-656997252224e4bbfea9417b0ab6d1eca66f5a02.tar.gz
tk-656997252224e4bbfea9417b0ab6d1eca66f5a02.tar.bz2
Reverted [aaf6b1a3a0]
Diffstat (limited to 'tests')
-rw-r--r--tests/spinbox.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 0f41379..b8170c5 100644
--- a/tests/spinbox.test
+++ b/tests/spinbox.test
@@ -3775,6 +3775,22 @@ test spinbox-22.3 {spinbox config, -from changes SF bug 559078} -body {
destroy .e
} -result {6}
+test spinbox-23.1 {selection present while disabled, bug 637828} -body {
+ spinbox .e
+ .e insert end 0123456789
+ .e select from 3
+ .e select to 6
+ set out [.e selection present]
+ .e configure -state disabled
+# still return 1 when disabled, because 'selection get' will work,
+# but selection cannot be changed (new behavior since 8.4)
+ .e select to 9
+ lappend out [.e selection present] [selection get]
+} -cleanup {
+ destroy .e
+} -result {1 1 345}
+
+
# Collected comments about lacks from the test
# XXX Still need to write tests for SpinboxBlinkProc, SpinboxFocusProc,
# and SpinboxTextVarProc.