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 correct focus behaviour when moving a floating con to
22 my $tmp = fresh_workspace;
24 # open a tiling window on the first workspace
26 my $first = get_focused($tmp);
28 # on a different ws, open a floating window
29 my $otmp = fresh_workspace;
31 my $float = get_focused($otmp);
35 # move the floating con to first workspace
36 cmd "move workspace $tmp";
39 # switch to the first ws and check focus
40 is(get_focused($tmp), $float, 'floating client correctly focused');