summaryrefslogtreecommitdiffstats
path: root/tests/place.test
diff options
context:
space:
mode:
authorculler <culler>2020-07-24 15:32:53 (GMT)
committerculler <culler>2020-07-24 15:32:53 (GMT)
commita965e9c43e2e9889b4cb3581bc91221c087a7c25 (patch)
treee04bdcb3494f97272c3dec08a93468bfc6dfc2c3 /tests/place.test
parent45c939237b9e173457e588379c906a8e82211b78 (diff)
downloadtk-a965e9c43e2e9889b4cb3581bc91221c087a7c25.zip
tk-a965e9c43e2e9889b4cb3581bc91221c087a7c25.tar.gz
tk-a965e9c43e2e9889b4cb3581bc91221c087a7c25.tar.bz2
Fix Windows tests which were affected by the Mac changes.
Diffstat (limited to 'tests/place.test')
-rw-r--r--tests/place.test14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/place.test b/tests/place.test
index 56ddde4..0a5e22f 100644
--- a/tests/place.test
+++ b/tests/place.test
@@ -258,6 +258,14 @@ test place-7.10 {ReconfigurePlacement procedure, computing size} -setup {
list [winfo width .t.f2] [winfo height .t.f2]
} -result {30 60}
+if {[tk windowingsystem] == "win32"} {
+ proc placeUpdate {} {
+ update
+ }
+} else {
+ proc placeUpdate {} {
+ }
+}
test place-8.1 {MasterStructureProc, mapping and unmapping slaves} -setup {
place forget .t.f2
@@ -267,13 +275,12 @@ test place-8.1 {MasterStructureProc, mapping and unmapping slaves} -setup {
update idletasks
set result [winfo ismapped .t.f2]
wm iconify .t
- update idletasks
lappend result [winfo ismapped .t.f2]
place .t.f2 -x 40 -y 30 -relx 0 -rely 0 -anchor nw
update idletasks
lappend result [winfo x .t.f2] [winfo y .t.f2] [winfo ismapped .t.f2]
wm deiconify .t
- update idletasks
+ placeUpdate
lappend result [winfo ismapped .t.f2]
} -result {1 0 40 30 0 1}
test place-8.2 {MasterStructureProc, mapping and unmapping slaves} -setup {
@@ -286,13 +293,12 @@ test place-8.2 {MasterStructureProc, mapping and unmapping slaves} -setup {
update idletasks
set result [winfo ismapped .t.f2]
wm iconify .t
- update idletasks
lappend result [winfo ismapped .t.f2]
place .t.f2 -x 40 -y 30 -relx 0 -rely 0 -anchor nw
update idletasks
lappend result [winfo x .t.f2] [winfo y .t.f2] [winfo ismapped .t.f2]
wm deiconify .t
- update idletasks
+ placeUpdate
lappend result [winfo ismapped .t.f2]
} -result {1 0 42 32 0 1}
destroy .t