summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-10-31 20:30:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-10-31 20:30:27 (GMT)
commit55fc97d827d04fb3bc87f34f5aba3ded5a7471eb (patch)
tree2f06322641459becfbd7f58f908ada64664a8a22
parentf4d4fd8a09e8d9dd4170ff2115ec46fe185b1ad8 (diff)
downloadtk-55fc97d827d04fb3bc87f34f5aba3ded5a7471eb.zip
tk-55fc97d827d04fb3bc87f34f5aba3ded5a7471eb.tar.gz
tk-55fc97d827d04fb3bc87f34f5aba3ded5a7471eb.tar.bz2
Fixed bug [e51941c1b9] - text-9.2.47 fails sometimes
-rw-r--r--tests/text.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index 0909d2f..7c1731d 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -745,6 +745,10 @@ test text-9.2.47 {TextWidgetCmd procedure, "count" option} -setup {
.t tag configure hidden -elide true
.t tag add hidden 5.7 11.0
update
+ # next line to be fully sure that asynchronous line heights calculation is
+ # up-to-date otherwise this test may fail (depending on the computer
+ # performance), especially when the . toplevel has small height
+ .t count -update -ypixels 1.0 end
set y1 [lindex [.t yview] 1]
.t count -displaylines 5.0 11.0
set y2 [lindex [.t yview] 1]