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