summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-23 20:12:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-23 20:12:54 (GMT)
commit04dad740091d27ad1d2aa62d7256ba321d875cf4 (patch)
treead0ec0133dc6d743e3c719b0f52aa3bc6b85fcba /tests
parent68822a4513193a63ff4b05a712018d5726104368 (diff)
parentdabee7102b4e83ddd4784375631348c6b1ed0e11 (diff)
downloadtk-04dad740091d27ad1d2aa62d7256ba321d875cf4.zip
tk-04dad740091d27ad1d2aa62d7256ba321d875cf4.tar.gz
tk-04dad740091d27ad1d2aa62d7256ba321d875cf4.tar.bz2
Fix [89a638af38]: OS X - textDisp-15.8 fails
Diffstat (limited to 'tests')
-rw-r--r--tests/textDisp.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test
index d3de2d8..8342c46 100644
--- a/tests/textDisp.test
+++ b/tests/textDisp.test
@@ -1952,13 +1952,15 @@ test textDisp-15.8 {Scrolling near end of window} {
.tf.f.t insert end "\nLine $i"
}
update ; after 1000 ; update
+ set refind [.tf.f.t index @0,[winfo height .tf.f.t]]
# Should scroll and should not crash!
.tf.f.t yview scroll 1 unit
# Check that it has scrolled
- set res [.tf.f.t index @0,[expr [winfo height .tf.f.t] - 15]]
+ set newind [.tf.f.t index @0,[winfo height .tf.f.t]]
+ set res [.tf.f.t compare $newind > $refind]
destroy .tf
set res
-} {12.0}
+} {1}
.t configure -wrap char
.t delete 1.0 end