summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorculler <culler>2018-11-14 13:29:05 (GMT)
committerculler <culler>2018-11-14 13:29:05 (GMT)
commitdc9645b5eab322276e8884db09e3801e709082cb (patch)
tree40cc70d224a61b77112ba456c84d054609c563e9 /tests/text.test
parent431fd3a61d1b6b652122132d4244c358bca5f0e6 (diff)
parent13080bd706087870892fd7275ef8df1693e26626 (diff)
downloadtk-dc9645b5eab322276e8884db09e3801e709082cb.zip
tk-dc9645b5eab322276e8884db09e3801e709082cb.tar.gz
tk-dc9645b5eab322276e8884db09e3801e709082cb.tar.bz2
Fix tests that were sporadically hanging or failing on macOS.
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index 021a393..3d89350 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -3033,6 +3033,7 @@ test text-11a.22 {TextWidgetCmd procedure, "sync" option with -command} -setup {
set ::x 0
toplevel .top
pack [text .top.yt]
+ update
set content {}
for {set i 1} {$i < 30} {incr i} {
append content [string repeat "$i " 15] \n
@@ -3059,6 +3060,7 @@ test text-11a.31 {"<<WidgetViewSync>>" event} -setup {
} -body {
toplevel .top
pack [text .top.yt]
+ update
set content {}
for {set i 1} {$i < 300} {incr i} {
append content [string repeat "$i " 15] \n
@@ -3092,6 +3094,7 @@ test text-11a.41 {"sync" "pendingsync" and <<WidgetViewSync>>} -setup {
set res {}
toplevel .top
pack [text .top.yt]
+ update
set content {}
for {set i 1} {$i < 300} {incr i} {
append content [string repeat "$i " 50] \n
@@ -6554,6 +6557,8 @@ test text-27.10 {TextEditCmd procedure, set modified flag} -body {
test text-27.11 {TextEditCmd procedure, set modified flag repeat} -setup {
text .t
pack .t
+# Make sure the Text is mapped before we start
+ update
set ::retval {}
update
} -body {