summaryrefslogtreecommitdiffstats
path: root/tests/textImage.test
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-02-15 19:20:37 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-02-15 19:20:37 (GMT)
commitf007fe456adf17e82b86137130d637a5e56719c6 (patch)
treec827271abc05117486ec91d0b8b321fd2859b560 /tests/textImage.test
parente82961c60e069b0ef01545bc93ab4592c13f209a (diff)
parenta78d63a53636f2203123515109522cf839a43cd7 (diff)
downloadtk-f007fe456adf17e82b86137130d637a5e56719c6.zip
tk-f007fe456adf17e82b86137130d637a5e56719c6.tar.gz
tk-f007fe456adf17e82b86137130d637a5e56719c6.tar.bz2
Fixed failing textImage-3.2 test - See bug [1591493fff]
Diffstat (limited to 'tests/textImage.test')
-rw-r--r--tests/textImage.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/textImage.test b/tests/textImage.test
index 24246cc..4bb190c 100644
--- a/tests/textImage.test
+++ b/tests/textImage.test
@@ -316,8 +316,7 @@ test textImage-3.1 {image change propagation} -setup {
image delete vary
} -result {{base:0 0 5 5} {10:0 0 10 10} {20:0 0 20 20} {40:0 0 40 40}}
-# Fails in some environments (both in Linux and winXP)
-test textImage-3.2 {delayed image management} -setup {
+test textImage-3.2 {delayed image management, see also bug 1591493} -setup {
destroy .t
set result ""
} -body {
@@ -329,14 +328,16 @@ test textImage-3.2 {delayed image management} -setup {
pack .t
.t image create end -name test
update
- lappend result [.t bbox test]
+ foreach {x1 y1 w1 h1} [.t bbox test] {}
+ lappend result [list $x1 $w1 $h1]
.t image configure test -image small -align top
update
- lappend result [.t bbox test]
+ foreach {x2 y2 w2 h2} [.t bbox test] {}
+ lappend result [list [expr {$x1==$x2}] [expr {$w2>0}] [expr {$h2>0}]]
} -cleanup {
destroy .t
image delete small
-} -result {{} {0 0 5 5}}
+} -result {{0 0 0} {1 1 1}}
# some temporary random tests