summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-21 20:37:40 (GMT)
committerhobbs <hobbs>2001-09-21 20:37:40 (GMT)
commit1dc7351455702731637ad6de3de064bff4823fbb (patch)
tree9c84bfead106ea522e9ddf9b14056aa388a3ede0
parent95d97a9e17119f2b179ff039e4bc6f3c95970180 (diff)
downloadtk-1dc7351455702731637ad6de3de064bff4823fbb.zip
tk-1dc7351455702731637ad6de3de064bff4823fbb.tar.gz
tk-1dc7351455702731637ad6de3de064bff4823fbb.tar.bz2
* tests/scrollbar.test (scrollbar-6.27): marked knownBug because
it is skewed by bad dimensions returned by Windows.
-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}