diff options
author | hobbs <hobbs> | 2005-12-01 00:03:03 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-12-01 00:03:03 (GMT) |
commit | bd544bc92c129d0d2675b90ec0e130b4b0d389c7 (patch) | |
tree | c1a1ca11f12ba641c2b77378fffbb5c7b60c716e /tests | |
parent | d6e19dec5117d1badcc8400afa324eacceb42b22 (diff) | |
download | tk-bd544bc92c129d0d2675b90ec0e130b4b0d389c7.zip tk-bd544bc92c129d0d2675b90ec0e130b4b0d389c7.tar.gz tk-bd544bc92c129d0d2675b90ec0e130b4b0d389c7.tar.bz2 |
* tests/scrollbar.test (6.22): fix rounding-error sensitive test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scrollbar.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test index 025df53..0be5e04 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.9 2002/07/13 20:28:35 dgp Exp $ +# RCS: @(#) $Id: scrollbar.test,v 1.9.2.1 2005/12/01 00:03:04 hobbs Exp $ package require tcltest 2.1 namespace import -force tcltest::configure @@ -510,8 +510,8 @@ test scrollbar-6.21 {ScrollbarPosition procedure} {macOrUnix nonPortable} { .s identify 8 83 } {slider} test scrollbar-6.22 {ScrollbarPosition procedure} {testmetrics pcOnly} { - .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 pcOnly} { .s identify [expr [winfo width .s] / 2] [expr int(.4 / [.s delta 0 1]) \ |