diff options
author | fvogel <fvogelnew1@free.fr> | 2018-09-25 19:13:43 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-09-25 19:13:43 (GMT) |
commit | f63bb1144e5843b991583fa4768e4c6eb67f51d4 (patch) | |
tree | 3110f29a5e12a0388e975ad5329737f20b37f59f /tests/scrollbar.test | |
parent | 1603ff2057cee3dfc3780d2ae7bb40d2f7ca1248 (diff) | |
download | tk-f63bb1144e5843b991583fa4768e4c6eb67f51d4.zip tk-f63bb1144e5843b991583fa4768e4c6eb67f51d4.tar.gz tk-f63bb1144e5843b991583fa4768e4c6eb67f51d4.tar.bz2 |
Fix [f792b457eb]: scrollbar-3.26, 3.27, 3.28, 3.35 tests fail on macOS. The fix consists in using the Linux code for the testmetrics command on macOS, instead of returning the width of the scrollbar (for both cxvscroll and cyvscroll requests).
Diffstat (limited to 'tests/scrollbar.test')
-rw-r--r-- | tests/scrollbar.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test index bd14067..e590bb9 100644 --- a/tests/scrollbar.test +++ b/tests/scrollbar.test @@ -283,7 +283,7 @@ test scrollbar-3.41 {ScrollbarWidgetCmd procedure, "fraction" option} { if {[testConstraint testmetrics]} { place configure .t.s -width [expr 2*[testmetrics cxhscroll .t.s]+1] } else { - place configure .t.s -width [expr [winfo reqwidth .t.s] - 4] + place configure .t.s -width [expr [winfo height .t.s] - 2*([.t.s cget -highlightthickness] + [.t.s cget -bd] + 1)] } update test scrollbar-3.42 {ScrollbarWidgetCmd procedure, "fraction" option} { |