diff options
Diffstat (limited to 'testcases/t/295-net-wm-state-focused.t')
-rw-r--r-- | testcases/t/295-net-wm-state-focused.t | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/testcases/t/295-net-wm-state-focused.t b/testcases/t/295-net-wm-state-focused.t index 68283e9c..1a9b065e 100644 --- a/testcases/t/295-net-wm-state-focused.t +++ b/testcases/t/295-net-wm-state-focused.t @@ -23,17 +23,22 @@ my ($windowA, $windowB); fresh_workspace; $windowA = open_window; -ok(is_net_wm_state_focused($windowA), 'a newly opened window that is focused should have _NET_WM_STATE_FOCUSED set'); +ok(net_wm_state_contains($windowA, '_NET_WM_STATE_FOCUSED'), + 'a newly opened window that is focused should have _NET_WM_STATE_FOCUSED set'); $windowB = open_window; -ok(!is_net_wm_state_focused($windowA), 'when a another window is focused, the old window should not have _NET_WM_STATE_FOCUSED set'); -ok(is_net_wm_state_focused($windowB), 'a newly opened window that is focused should have _NET_WM_STATE_FOCUSED set'); +ok(!net_wm_state_contains($windowA, '_NET_WM_STATE_FOCUSED'), + 'when a another window is focused, the old window should not have _NET_WM_STATE_FOCUSED set'); +ok(net_wm_state_contains($windowB, '_NET_WM_STATE_FOCUSED'), + 'a newly opened window that is focused should have _NET_WM_STATE_FOCUSED set'); # See issue #3495. cmd 'kill'; -ok(is_net_wm_state_focused($windowA), 'when the second window is closed, the first window should have _NET_WM_STATE_FOCUSED set'); +ok(net_wm_state_contains($windowA, '_NET_WM_STATE_FOCUSED'), + 'when the second window is closed, the first window should have _NET_WM_STATE_FOCUSED set'); fresh_workspace; -ok(!is_net_wm_state_focused($windowA), 'when focus moves to the ewmh support window, no window should have _NET_WM_STATE_FOCUSED set'); +ok(!net_wm_state_contains($windowA, '_NET_WM_STATE_FOCUSED'), + 'when focus moves to the ewmh support window, no window should have _NET_WM_STATE_FOCUSED set'); done_testing; |