summaryrefslogtreecommitdiffstats
path: root/tests/spinbox.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-16 13:31:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-16 13:31:44 (GMT)
commit366274267444686d4349c1e8acfd1d86f5574d09 (patch)
tree6b8efc37c1d2b325058838397156b505c8fd2554 /tests/spinbox.test
parent5385927e72f73a73d5f8a5e4eb0f033c18d2ad6c (diff)
downloadtk-366274267444686d4349c1e8acfd1d86f5574d09.zip
tk-366274267444686d4349c1e8acfd1d86f5574d09.tar.gz
tk-366274267444686d4349c1e8acfd1d86f5574d09.tar.bz2
(cherry-pick): Require Tcltest 2.2 as a miminum. Run X11 testcases on Travis in 3 Ubuntu variants: Xenial, Bionic and Focal. (MacOS/XQuartz not working yet)
Diffstat (limited to 'tests/spinbox.test')
-rw-r--r--tests/spinbox.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/spinbox.test b/tests/spinbox.test
index 68c6fae..5b58117 100644
--- a/tests/spinbox.test
+++ b/tests/spinbox.test
@@ -4,7 +4,7 @@
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
-package require tcltest 2.1
+package require tcltest 2.2
eval tcltest::configure $argv
tcltest::loadTestedCommands
@@ -48,7 +48,7 @@ foreach test {
{-buttoncursor arrow arrow badValue {bad cursor spec "badValue"}}
{-command {a command} {a command} {} {}}
{-cursor arrow arrow badValue {bad cursor spec "badValue"}}
- {-disabledbackground green green non-existent
+ {-disabledbackground green green non-existent
{unknown color name "non-existent"}}
{-disabledforeground #110022 #110022 bogus {unknown color name "bogus"}}
{-exportselection yes 1 xyzzy {expected boolean value but got "xyzzy"}}
@@ -71,7 +71,7 @@ foreach test {
{-invalidcommand "a command" "a command" {} {}}
{-invcmd "a command" "a command" {} {}}
{-justify right right bogus {bad justification "bogus": must be left, right, or center}}
- {-readonlybackground green green non-existent
+ {-readonlybackground green green non-existent
{unknown color name "non-existent"}}
{-relief groove groove 1.5 {bad relief "1.5": must be flat, groove, raised, ridge, solid, or sunken}}
{-repeatdelay 500 500 3p {expected integer but got "3p"}}
@@ -484,13 +484,13 @@ test spinbox-3.74 {SpinboxWidgetCmd procedure, "xview" widget command} {
test spinbox-3.75 {SpinboxWidgetCmd procedure, "xview" widget command} {
.e xview 30
update
- .e xview scroll 2 units
+ .e xview scroll 2 units
.e index @0
} {32}
test spinbox-3.76 {SpinboxWidgetCmd procedure, "xview" widget command} {
.e xview 30
update
- .e xview scroll -1 units
+ .e xview scroll -1 units
.e index @0
} {29}
test spinbox-3.77 {SpinboxWidgetCmd procedure, "xview" widget command} {
@@ -636,7 +636,7 @@ test spinbox-5.11 {ConfigureSpinbox procedure} {
pack [spinbox .e -font {{open look glyph}}]
.e scan dragto 30
update
-} {}
+} {}
# No tests for DisplaySpinbox.
@@ -1132,14 +1132,14 @@ test spinbox-13.9 {GetSpinboxIndex procedure} {
} {1 6}
selection clear .e
test spinbox-13.10 {GetSpinboxIndex procedure} unix {
- # On unix, when selection is cleared, spinbox widget's internal
+ # On unix, when selection is cleared, spinbox widget's internal
# selection range is reset.
list [catch {.e index sel.first} msg] $msg
} {1 {selection isn't in widget .e}}
test spinbox-13.11 {GetSpinboxIndex procedure} win {
# On mac and pc, when selection is cleared, spinbox widget remembers
- # last selected range. When selection ownership is restored to
+ # last selected range. When selection ownership is restored to
# spinbox, the old range will be rehighlighted.
list [catch {selection get}] [.e index sel.first]
@@ -1291,7 +1291,7 @@ test spinbox-18.1 {Spinbox widget vs hiding} {
interp hide {} .e
destroy .e
list [winfo children .] [interp hidden]
-} [list {} $l]
+} [list {} $l]
##
## Spinbox widget VALIDATION tests