diff options
author | fvogel <fvogelnew1@free.fr> | 2022-11-01 17:58:24 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2022-11-01 17:58:24 (GMT) |
commit | 709903de6b4a21603f60af9e7db34d4da82d5609 (patch) | |
tree | 2ac98eb96a49a9110eae25b169e657c59e1e3eb9 /tests | |
parent | 4c38bea33cb5de75b7b3738d56ed8da5ec8c9b68 (diff) | |
download | tk-709903de6b4a21603f60af9e7db34d4da82d5609.zip tk-709903de6b4a21603f60af9e7db34d4da82d5609.tar.gz tk-709903de6b4a21603f60af9e7db34d4da82d5609.tar.bz2 |
Use string comparison when checking for 'aqua' platform.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/menubut.test | 2 | ||||
-rw-r--r-- | tests/text.test | 2 | ||||
-rw-r--r-- | tests/unixWm.test | 14 | ||||
-rw-r--r-- | tests/wm.test | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tests/menubut.test b/tests/menubut.test index b8a52a9..81794f7 100644 --- a/tests/menubut.test +++ b/tests/menubut.test @@ -542,7 +542,7 @@ test menubutton-6.1 {MenuButtonCmdDeletedProc procedure} -setup { deleteWindows } -result {{} {}} -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { set extraWidth 36 } else { set extraWidth 0 diff --git a/tests/text.test b/tests/text.test index 5dfbd68..2f5f1fc 100644 --- a/tests/text.test +++ b/tests/text.test @@ -3475,7 +3475,7 @@ test text-14.18 {ConfigureText procedure} -constraints fonts -setup { # The "overrideredirect" gets rid of the titlebar so the toplevel can shrink # to the appropriate size. # On macOS, however, there is no way to make the window overlap the menubar. -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { set minY [expr [menubarheight] + 1] } else { set minY 0 diff --git a/tests/unixWm.test b/tests/unixWm.test index af6451c..e17607d 100644 --- a/tests/unixWm.test +++ b/tests/unixWm.test @@ -19,7 +19,7 @@ testConstraint failsOnXQuarz [expr {$tcl_platform(os) ne "Darwin" || [tk windowi # Starting with macOS Ventura it became necessary to wait for windows to be restacked # or to be raised after creation. -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { proc restackDelay {} { after 100; } @@ -829,7 +829,7 @@ test unixWm-22.2 {Tk_WmCmd procedure, "iconbitmap" option} {unix testwrapper} { WM_HINTS] 0]]] lappend result [wm iconbitmap .t] $bit } {{} questhead 0x4 {} 0x0} -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { set result_22_3 {0 {}} } else { set result_22_3 {1 {bitmap "bad-bitmap" not defined}} @@ -1240,7 +1240,7 @@ test unixWm-34.2 {Tk_WmCmd procedure, "sizefrom" option} {unix testwrapper} { test unixWm-34.3 {Tk_WmCmd procedure, "sizefrom" option} unix { list [catch {wm sizefrom .t none} msg] $msg } {1 {bad argument "none": must be program or user}} -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { set result_35_1 {1 {bad argument "1": must be normal, iconic, withdrawn, or zoomed}} } else { set result_35_1 {1 {bad argument "1": must be normal, iconic, or withdrawn}} @@ -1802,7 +1802,7 @@ test unixWm-49.2 {Tk_GetRootCoords procedure, menubars} {unix testmenubar} { deleteWindows wm withdraw . -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { # Modern mac windows have no border. set result_50_1 {{} {} .t .t .t2 {} .t2 .t .t} } else { @@ -2122,7 +2122,7 @@ test unixWm-51.8 {TkWmRestackToplevel procedure, overrideredirect windows} unix lappend result [winfo containing $x $y] } {.t2 .t .t2} # The mac won't put an overrideredirect window above the root, -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { wm withdraw . } test unixWm-51.9 {TkWmRestackToplevel procedure, other window overrideredirect} unix { @@ -2151,7 +2151,7 @@ test unixWm-51.9 {TkWmRestackToplevel procedure, other window overrideredirect} restackDelay lappend result [winfo containing $x $y] } {.t2 .t3} -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { wm deiconify . } test unixWm-51.10 {TkWmRestackToplevel procedure, don't move window that's already in the right place} unix { @@ -2529,7 +2529,7 @@ test unixWm-59.3 {exit processing} unix { # NOTE: since [wm attributes] is not guaranteed to have any effect, # the only thing we can really test here is the syntax. # -if {[tk windowingsystem] == "aqua"} { +if {[tk windowingsystem] eq "aqua"} { set result_60_1 {-alpha 1.0 -fullscreen 0 -modified 0 -notify 0\ -titlepath {} -topmost 0 -transparent 0\ -type unsupported} diff --git a/tests/wm.test b/tests/wm.test index 78cd6b7..cce4ee4 100644 --- a/tests/wm.test +++ b/tests/wm.test @@ -2317,7 +2317,7 @@ test wm-forget-1.4 "pack into unmapped toplevel causes crash" -body { test wm-forget-2 {bug [e9112ef96e] - [wm forget] doesn't completely} -setup { catch {destroy .l .f.b .f} set res {} - if {[tk windowingsystem] == "aqua"} { + if {[tk windowingsystem] eq "aqua"} { proc doUpdate {} {update idletasks} } else { proc doUpdate {} {update} |