summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/scrollbar.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test
index 7c0305c..88f31df 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.6 2000/02/10 08:53:00 hobbs Exp $
+# RCS: @(#) $Id: scrollbar.test,v 1.7 2001/09/21 20:37:40 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
@@ -535,7 +535,11 @@ test scrollbar-6.25 {ScrollbarPosition procedure} {unixOnly} {
test scrollbar-6.26 {ScrollbarPosition procedure} {macOnly} {
.s identify 8 179
} {arrow2}
-test scrollbar-6.27 {ScrollbarPosition procedure} {pcOnly} {
+test scrollbar-6.27 {ScrollbarPosition procedure} {pcOnly knownBug} {
+ # This asks for 8,21, which is actually the slider, but there is a
+ # bug in that GetSystemMetrics(SM_CYVTHUMB) actually returns a value
+ # that is larger than the thumb displayed, skewing the ability to
+ # calculate the trough2 area correctly (Win2k). -- hobbs
.s identify [expr [winfo width .s] / 2] [expr int(.4 / [.s delta 0 1]) \
+ [testmetrics cyvscroll]]
} {trough2}