2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Regression test for closing one of multiple dock clients
21 my $tmp = fresh_workspace;
23 #####################################################################
24 # verify that there is no dock window yet
25 #####################################################################
27 # Children of all dockareas
28 my @docked = get_dock_clients;
30 is(@docked, 0, 'no dock clients yet');
32 #####################################################################
34 #####################################################################
36 my $first = open_window({
37 background_color => '#FF0000',
38 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
41 #####################################################################
42 # Open a second dock client
43 #####################################################################
45 my $second = open_window({
46 background_color => '#FF0000',
47 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
50 #####################################################################
51 # Kill the second dock client
52 #####################################################################
53 cmd "nop destroying dock client";
56 #####################################################################
57 # Now issue a focus command
58 #####################################################################