]> git.sur5r.net Git - i3/i3/blob - testcases/t/182-regress-focus-dock.t
add boilerplate to all testcases with documentation references
[i3/i3] / testcases / t / 182-regress-focus-dock.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • http://build.i3wm.org/docs/ipc.html
12 #   (or docs/ipc)
13 #
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 #   (unless you are already familiar with Perl)
16 #
17 # Regression test: Focusing a dock window should just do nothing, not crash i3.
18 # See ticket http://bugs.i3wm.org/575
19 # Wrong behaviour manifested itself up to (including) commit
20 # 340592a532b5259c3a3f575de5a9639fad4d1459
21 #
22 use i3test;
23
24 fresh_workspace;
25
26 my $window = open_window(
27     window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
28 );
29
30 cmd '[title="' . $window->name . '"] focus';
31
32 does_i3_live;
33
34 done_testing;