diff options
author | culler <culler> | 2019-05-21 19:49:48 (GMT) |
---|---|---|
committer | culler <culler> | 2019-05-21 19:49:48 (GMT) |
commit | 32d393d515efed07e6dc3cf3ef73626197f496fe (patch) | |
tree | 1ac94de1a4e5aac699836a503b2c9ac2b2f79b2b /tests/canvImg.test | |
parent | 98be79b4923b0a5ad357ec4aea70ba4e96317ef7 (diff) | |
download | tk-32d393d515efed07e6dc3cf3ef73626197f496fe.zip tk-32d393d515efed07e6dc3cf3ef73626197f496fe.tar.gz tk-32d393d515efed07e6dc3cf3ef73626197f496fe.tar.bz2 |
Use vwait with a timeout to wait for test image display, as suggested by dkf.
Diffstat (limited to 'tests/canvImg.test')
-rw-r--r-- | tests/canvImg.test | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/canvImg.test b/tests/canvImg.test index c28eb5b..28f0375 100644 --- a/tests/canvImg.test +++ b/tests/canvImg.test @@ -166,9 +166,11 @@ test canvImg-4.2 {ConfigureImage procedure} -constraints testImageType -setup { update set x {} set y {} + set timer [after 3000 {set y "timed out"}] .c itemconfigure i1 -image foo2 update idletasks - update + vwait y + after cancel timer list $x $y [.c bbox i1] } -cleanup { .c delete all |