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 # Verifies that command or config criteria does not match dock clients
18 # Bug still in: 4.12-38-ge690e3d
19 use i3test i3_autostart => 0;
23 for_window [class="dock"] move workspace current
26 my $pid = launch_with_config($config);
28 my $ws = fresh_workspace();
31 ## command criteria should not match dock windows
33 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
37 is(get_dock_clients, 1, "created one docked client");
38 is_num_children($ws, 0, 'no container on the current workspace');
40 cmd '[class="^x$"] move workspace current';
43 is(get_dock_clients, 1, "one docked client after move");
44 is_num_children($ws, 0, 'no container on the current workspace');
46 cmd '[class="^x$"] fullscreen';
49 is(get_dock_clients, 1, "one docked client after fullscreen");
50 is_num_children($ws, 0, 'no container on the current workspace');
52 cmd '[class="^x$"] kill';
55 is(get_dock_clients, 1, "one docked client after kill");
56 is_num_children($ws, 0, 'no container on the current workspace');
59 ## config criteria should not match dock windows
61 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
66 is(get_dock_clients, 2, "created second docked client");
67 is_num_children($ws, 0, 'no container on the current workspace');
70 exit_gracefully($pid);