summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-12-01 02:02:20 (GMT)
committerhobbs <hobbs>2005-12-01 02:02:20 (GMT)
commit90106fede7439d25db345f35e1f02035a80a8326 (patch)
tree44a0626a08bf19ace64625436d1b14c3c85edf8d /tests
parent47b562264cdbce86619a8552e2279c5d0804a9d7 (diff)
downloadtk-90106fede7439d25db345f35e1f02035a80a8326.zip
tk-90106fede7439d25db345f35e1f02035a80a8326.tar.gz
tk-90106fede7439d25db345f35e1f02035a80a8326.tar.bz2
(6.22): fix rounding-error sensitive test
Diffstat (limited to 'tests')
-rw-r--r--tests/scrollbar.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test
index 718d970..013ce36 100644
--- a/tests/scrollbar.test
+++ b/tests/scrollbar.test
@@ -7,7 +7,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: scrollbar.test,v 1.15 2004/12/07 10:08:00 dkf Exp $
+# RCS: @(#) $Id: scrollbar.test,v 1.16 2005/12/01 02:02:20 hobbs Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -486,8 +486,8 @@ test scrollbar-6.21 {ScrollbarPosition procedure} {unix nonPortable} {
.s identify 8 83
} {slider}
test scrollbar-6.22 {ScrollbarPosition procedure} {testmetrics win} {
- .s identify [expr [winfo width .s] / 2] [expr int(.2 / [.s delta 0 1]) \
- + [testmetrics cyvscroll]]
+ .s identify [expr [winfo width .s] / 2] \
+ [expr int(.2 / [.s delta 0 1] + 0.5) + [testmetrics cyvscroll]]
} {slider}
test scrollbar-6.23 {ScrollbarPosition procedure} {testmetrics win} {
.s identify [expr [winfo width .s] / 2] [expr int(.4 / [.s delta 0 1]) \