summaryrefslogtreecommitdiffstats
path: root/tests/tk.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/tk.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/tk.test')
-rw-r--r--tests/tk.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tk.test b/tests/tk.test
index 02b4257..9673caa 100644
--- a/tests/tk.test
+++ b/tests/tk.test
@@ -5,7 +5,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# Copyright (c) 2002 ActiveState Corporation.
-package require tcltest 2.1
+package require tcltest 2.2
eval tcltest::configure $argv
tcltest::loadTestedCommands
@@ -65,7 +65,7 @@ test tk-3.8 {tk command: scaling: negative} {
test tk-3.9 {tk command: scaling: too big} {
tk scaling 1000000
expr {[tk scaling] < 10000}
-} {1}
+} 1
test tk-3.10 {tk command: scaling: widthmm} {
tk scaling 1.25
expr {int((25.4*[winfo screenwidth .])/(72*1.25)+0.5)-[winfo screenmmwidth .]}