summaryrefslogtreecommitdiffstats
path: root/tests/frame.test
diff options
context:
space:
mode:
authorculler <culler>2020-05-11 21:24:02 (GMT)
committerculler <culler>2020-05-11 21:24:02 (GMT)
commitedeeece7a1d441c68a4fd5669a7fc0de31fc213d (patch)
tree92f4d1f2d84e2f3759e2c779deaeb81e8d554d7f /tests/frame.test
parentc68e6846fa095947b92145b27d472d5df463d616 (diff)
downloadtk-edeeece7a1d441c68a4fd5669a7fc0de31fc213d.zip
tk-edeeece7a1d441c68a4fd5669a7fc0de31fc213d.tar.gz
tk-edeeece7a1d441c68a4fd5669a7fc0de31fc213d.tar.bz2
Fix [411359dc3b]: Clean up Aqua window destruction in TkWmDeadWindow to prevent crashes and zombies on systems with a Touchbar.
Diffstat (limited to 'tests/frame.test')
-rw-r--r--tests/frame.test27
1 files changed, 22 insertions, 5 deletions
diff --git a/tests/frame.test b/tests/frame.test
index 88f74f9..63bb187 100644
--- a/tests/frame.test
+++ b/tests/frame.test
@@ -673,11 +673,19 @@ test frame-3.10 {TkCreateFrame procedure, -use option} -constraints {
} -body {
toplevel .t -container 1 -width 300 -height 120
wm geometry .t +0+0
+ if {[tk windowingsystem] eq "aqua"} {
+ update idletasks
+ } else {
+ update
+ }
option add *x.use [winfo id .t]
- update
toplevel .x -width 140 -height 300 -bg green
- tkwait visibility .x
- update
+ if {[tk windowingsystem] eq "aqua"} {
+ update idletasks
+ } else {
+ tkwait visibility .x
+ update
+ }
list [expr {[winfo rootx .x] - [winfo rootx .t]}] \
[expr {[winfo rooty .x] - [winfo rooty .t]}] \
[winfo width .t] [winfo height .t]
@@ -1154,17 +1162,26 @@ test frame-12.2 {FrameWorldChanged procedure} -setup {
} -result {1 1 1 1 1 1 1 1 1 1 1 1}
test frame-12.3 {FrameWorldChanged procedure} -setup {
deleteWindows
+ update idletasks
} -body {
# Check reaction on font change
font create myfont -family courier -size 10
labelframe .f -font myfont -text Mupp
place .f -x 0 -y 0 -width 40 -height 40
pack [frame .f.f] -fill both -expand 1
- update
+ if {[tk windowingsystem] eq "aqua"} {
+ update idletasks
+ } else {
+ update
+ }
set h1 [font metrics myfont -linespace]
set y1 [winfo y .f.f]
font configure myfont -size 20
- update
+ if {[tk windowingsystem] eq "aqua"} {
+ update idletasks
+ } else {
+ update
+ }
set h2 [font metrics myfont -linespace]
set y2 [winfo y .f.f]
expr {($h2 - $h1) - ($y2 - $y1)}