summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorculler <culler>2018-11-13 05:40:51 (GMT)
committerculler <culler>2018-11-13 05:40:51 (GMT)
commit3ea35977ea5872517ce243b49bd5a768b0aa1352 (patch)
tree38292b2ed89b7876924f33d4b0fef554e07e89e6 /tests/text.test
parent29acee22500b4d937e6f46118f36635cdecd8f5e (diff)
downloadtk-3ea35977ea5872517ce243b49bd5a768b0aa1352.zip
tk-3ea35977ea5872517ce243b49bd5a768b0aa1352.tar.gz
tk-3ea35977ea5872517ce243b49bd5a768b0aa1352.tar.bz2
fix hangs in text.test caused by calling pendingsync before the text widget was mapped.
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index 5eadeac..600ce2b 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -3021,6 +3021,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
@@ -3047,6 +3048,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
@@ -3080,6 +3082,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