2 # vim:ts=4:sw=4:expandtab
4 # Tests if WM_STATE is WM_STATE_NORMAL when mapped and WM_STATE_WITHDRAWN when
10 my $tmp = fresh_workspace;
12 ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
14 my $first = open_window;
15 my $second = open_window;
17 is($x->input_focus, $second->id, 'second window focused');
18 ok(@{get_ws_content($tmp)} == 2, 'two containers opened');
23 ##############################################################
24 # 1: open two windows (in the same client), kill one and see if
25 # the other one is still there
26 ##############################################################
28 my $tmp = two_windows;
34 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
36 ##############################################################
37 # 2: same test case as test 1, but with the explicit variant
39 ##############################################################
47 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
49 ##############################################################
50 # 3: open two windows (in the same client), use 'kill client'
51 # and check if both are gone
52 ##############################################################
60 ok(@{get_ws_content($tmp)} == 0, 'no containers left after killing');