summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-10-14 08:41:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-10-14 08:41:54 (GMT)
commit0f5e6fa7d817f50aea33fbd8d97c893c4d299d22 (patch)
tree4b08712ad1a01860441d436dfd89cb92e87580e6 /tests
parentffb4bcc9a5effa3ed7302a34c21490f3398615df (diff)
downloadtk-0f5e6fa7d817f50aea33fbd8d97c893c4d299d22.zip
tk-0f5e6fa7d817f50aea33fbd8d97c893c4d299d22.tar.gz
tk-0f5e6fa7d817f50aea33fbd8d97c893c4d299d22.tar.bz2
unixWm.test - Let unixWm-4.1, -4.2 and -4.3 pass on Debian 11 by processing events while waiting a bit for the window to be withdrawn and deiconified. Also, remove the ancestral sleep that was once apparently needed for the tests to pass under twm.
Diffstat (limited to 'tests')
-rw-r--r--tests/unixWm.test8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/unixWm.test b/tests/unixWm.test
index d296858..2918e84 100644
--- a/tests/unixWm.test
+++ b/tests/unixWm.test
@@ -121,11 +121,11 @@ set i 1
foreach geom "+$X+80 +$X+40 +$X+$Y0" {
test unixWm-4.$i {moving window while withdrawn} unix {
wm withdraw .t
- update idletasks
+ sleep 10
wm geom .t $geom
update idletasks
wm deiconify .t
- update idletasks
+ sleep 10
wm geom .t
} 100x150$geom
incr i
@@ -246,10 +246,6 @@ test unixWm-6.4 {size changes} {unix nonPortable userInteraction} {
list $width $height $w2 $h2 [wm geom .t]
} {0 0 230 110 114x261+10+10}
-# I don't know why the wait below is needed, but without it the test
-# fails under twm.
-sleep 200
-
test unixWm-6.5 {window initially iconic} {unix nonPortable} {
destroy .t
toplevel .t -width 100 -height 30