summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-11-22 20:11:32 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-11-22 20:11:32 (GMT)
commit18be499df0bf93b80752ce384e016bb11c5168de (patch)
tree0ef3204d777ed1f09f1aacad905e83ebc1d3f1fb /tests/text.test
parent7b508aa619702b2fa53ab5cd0a0675b3cd4c0c5e (diff)
downloadtk-18be499df0bf93b80752ce384e016bb11c5168de.zip
tk-18be499df0bf93b80752ce384e016bb11c5168de.tar.gz
tk-18be499df0bf93b80752ce384e016bb11c5168de.tar.bz2
Use the new sync command instead of the 'count -update' workaround
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/text.test b/tests/text.test
index 563f61b..dc44293 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -745,10 +745,7 @@ 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
+ .t sync
set y1 [lindex [.t yview] 1]
.t count -displaylines 5.0 11.0
set y2 [lindex [.t yview] 1]