summaryrefslogtreecommitdiffstats
path: root/tests/wm.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wm.test')
-rw-r--r--tests/wm.test29
1 files changed, 26 insertions, 3 deletions
diff --git a/tests/wm.test b/tests/wm.test
index 9cbe49a..f56eaa7 100644
--- a/tests/wm.test
+++ b/tests/wm.test
@@ -1516,9 +1516,10 @@ test wm-stackorder-5.1 {a menu is not a toplevel} -body {
} -cleanup {
destroy .t
} -result {.t .}
-test wm-stackorder-5.2 {A normal toplevel can't be\
- raised above an overrideredirect toplevel} -body {
+test wm-stackorder-5.2 {A normal toplevel can't be raised above an \
+ overrideredirect toplevel on unix} -constraints x11 -body {
toplevel .t
+ tkwait visibility .t
wm overrideredirect .t 1
raise .
update
@@ -1527,9 +1528,22 @@ test wm-stackorder-5.2 {A normal toplevel can't be\
} -cleanup {
destroy .t
} -result 0
+test wm-stackorder-5.2.1 {A normal toplevel can be raised above an \
+ overrideredirect toplevel on macOS or win} -constraints aquaOrWin32 -body {
+ toplevel .t
+ tkwait visibility .t
+ wm overrideredirect .t 1
+ raise .
+ update
+ raiseDelay
+ wm stackorder . isabove .t
+} -cleanup {
+ destroy .t
+} -result 1
test wm-stackorder-5.3 {An overrideredirect window\
can be explicitly lowered} -body {
toplevel .t
+ tkwait visibility .t
wm overrideredirect .t 1
lower .t
update
@@ -1540,7 +1554,7 @@ test wm-stackorder-5.3 {An overrideredirect window\
} -result 1
test wm-stackorder-6.1 {An embedded toplevel does not\
- appear in the stacking order} -body {
+ appear in the stacking order on unix or win} -constraints notAqua -body {
toplevel .real -container 1
toplevel .embd -bg blue -use [winfo id .real]
update
@@ -1548,6 +1562,15 @@ test wm-stackorder-6.1 {An embedded toplevel does not\
} -cleanup {
deleteWindows
} -result {. .real}
+test wm-stackorder-6.1.1 {An embedded toplevel does\
+ appear in the stacking order on macOS} -constraints aqua -body {
+ toplevel .real -container 1
+ toplevel .embd -bg blue -use [winfo id .real]
+ update
+ wm stackorder .
+} -cleanup {
+ deleteWindows
+} -result {. .embd}
stdWindow