summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-12-11 10:43:41 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-12-11 10:43:41 (GMT)
commitffcaebdde9a01c86345261f7e27c2384a5ee8866 (patch)
tree0fbe29f46fc09bff48df2c0e1aa8df8a3de4da5b /tests
parent72bf44c32ae19ce0ac9941e93db74d54f9407fbf (diff)
downloadtk-ffcaebdde9a01c86345261f7e27c2384a5ee8866.zip
tk-ffcaebdde9a01c86345261f7e27c2384a5ee8866.tar.gz
tk-ffcaebdde9a01c86345261f7e27c2384a5ee8866.tar.bz2
Reverted [30c7d14b21], but really use a spinbox and not an entry for the test...
Diffstat (limited to 'tests')
-rw-r--r--tests/spinbox.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 88e4d44..0661635 100644
--- a/tests/spinbox.test
+++ b/tests/spinbox.test
@@ -1568,6 +1568,20 @@ test spinbox-22.3 {spinbox config, -from changes SF bug 559078} {
set val
} {6}
+test spinbox-23.1 {selection present while disabled, bug 637828} {
+ destroy .e
+ 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]
+} {1 1 345}
+
destroy .e
catch {unset ::e ::vVals}