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 # The command "move workspace prev; workspace prev" will lead to an error.
18 # This regression is present in 7f9b65f6a752e454c492447be4e21e2ee8faf8fd
21 my $i3 = i3(get_socket_path());
23 # Open one workspace to move the con to
24 my $old = fresh_workspace;
25 my $keep_open_con = open_empty_con($i3);
27 # Get a workspace and open a container
28 my $tmp = fresh_workspace;
29 my $con = open_empty_con($i3);
31 is_num_children($tmp, 1, 'one container');
32 is_num_children($old, 1, 'one container on old ws');
34 cmd 'move workspace prev; workspace prev';
36 is_num_children($old, 2, 'container moved away');