summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-04-24 19:22:49 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-04-24 19:22:49 (GMT)
commit4a492ded7d28b278d05b90bec13c063918a4648e (patch)
tree8b703f6fdca83f0da8688875177e620767d05857 /tests
parentb11f62d364e59f4482c917db7a439a134db67f21 (diff)
downloadtk-4a492ded7d28b278d05b90bec13c063918a4648e.zip
tk-4a492ded7d28b278d05b90bec13c063918a4648e.tar.gz
tk-4a492ded7d28b278d05b90bec13c063918a4648e.tar.bz2
Stabilize textImage-4.2. This test was observed failing several times at GitHub Actions, on macOS with clang (no, --enable-aqua) or clang (mem, --enable-aqua). Font configuration schedules a redraw at idle time, that must be over before the bbox of the 'small' image is requested.
Diffstat (limited to 'tests')
-rw-r--r--tests/textImage.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/textImage.test b/tests/textImage.test
index 2f60211..1676348 100644
--- a/tests/textImage.test
+++ b/tests/textImage.test
@@ -391,7 +391,7 @@ test textImage-4.2 {alignment checking - baseline} -setup {
foreach size {10 15 20 25} {
font configure test_font2 -size $size
array set Metrics [font metrics test_font2]
- update
+ update ; after 100 ; update idletasks
foreach {x y w h} [.t bbox small] {}
set norm [expr {
(([image height large] - $Metrics(-linespace))/2