diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-16 13:31:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-16 13:31:44 (GMT) |
commit | 366274267444686d4349c1e8acfd1d86f5574d09 (patch) | |
tree | 6b8efc37c1d2b325058838397156b505c8fd2554 /tests/textImage.test | |
parent | 5385927e72f73a73d5f8a5e4eb0f033c18d2ad6c (diff) | |
download | tk-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/textImage.test')
-rw-r--r-- | tests/textImage.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/textImage.test b/tests/textImage.test index 47ea298..6cb3761 100644 --- a/tests/textImage.test +++ b/tests/textImage.test @@ -7,7 +7,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. -package require tcltest 2.1 +package require tcltest 2.2 eval tcltest::configure $argv tcltest::loadTestedCommands @@ -167,7 +167,7 @@ test textImage-1.17 {basic cget options} { set result "" foreach i {align padx pady image name} { lappend result $i:[.t image cget small -$i] - } + } set result } {align:center padx:0 pady:0 image:small name:} @@ -185,7 +185,7 @@ test textImage-1.18 {basic configure options} { set result "" foreach {option value} {align top padx 5 pady 7 image large name none} { .t image configure small -$option $value - } + } update .t image configure small } {{-align {} {} center top} {-padx {} {} 0 5} {-pady {} {} 0 7} {-image {} {} {} large} {-name {} {} {} none}} @@ -238,7 +238,7 @@ test textImage-3.1 {image change propagation} { vary configure -width $i -height $i update lappend result $i:[.t bbox vary] - } + } set result } {{base:0 0 5 5} {10:0 0 10 10} {20:0 0 20 20} {40:0 0 40 40}} |