summaryrefslogtreecommitdiffstats
path: root/tests/spinbox.test
diff options
context:
space:
mode:
authorhobbs <hobbs>2003-02-25 00:46:41 (GMT)
committerhobbs <hobbs>2003-02-25 00:46:41 (GMT)
commite00ecdcb8c997923d21b6bcf0bfad73a01ba856f (patch)
tree2f84759b83764383bb5b2affa490a72f369f60b6 /tests/spinbox.test
parentdf98bfd7023da58a0fb4ec65204c272998112424 (diff)
downloadtk-e00ecdcb8c997923d21b6bcf0bfad73a01ba856f.zip
tk-e00ecdcb8c997923d21b6bcf0bfad73a01ba856f.tar.gz
tk-e00ecdcb8c997923d21b6bcf0bfad73a01ba856f.tar.bz2
* generic/tkEntry.c (SpinboxWidgetObjCmd, EntryWidgetObjCmd):
* tests/entry.test: return 1 if selection is present even if * tests/spinbox.test: entry/spinbox is disabled, as selection get will still return the selection (although selection still ignore modify requests when entry/spinbox is disabled). [Bug #637828]
Diffstat (limited to 'tests/spinbox.test')
-rw-r--r--tests/spinbox.test16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 74c81a6..5881087 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.4 2002/07/25 21:19:01 hobbs Exp $
+# RCS: @(#) $Id: spinbox.test,v 1.5 2003/02/25 00:46:41 hobbs Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -1572,6 +1572,20 @@ test spinbox-22.3 {spinbox config, -from changes SF bug 559078} {
set val
} {6}
+test entry-23.1 {selection present while disabled, bug 637828} {
+ destroy .e
+ entry .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}