]> git.sur5r.net Git - i3/i3/blob - testcases/t/179-regress-multiple-ws.t
tests: replace http:// with https:// where appropriate
[i3/i3] / testcases / t / 179-regress-multiple-ws.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • https://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 # The command "move workspace prev; workspace prev" will lead to an error.
18 # This regression is present in 7f9b65f6a752e454c492447be4e21e2ee8faf8fd
19 use i3test;
20
21 my $i3 = i3(get_socket_path());
22
23 # Open one workspace to move the con to
24 my $old = fresh_workspace;
25 my $keep_open_con = open_empty_con($i3);
26
27 # Get a workspace and open a container
28 my $tmp = fresh_workspace;
29 my $con = open_empty_con($i3);
30
31 is_num_children($tmp, 1, 'one container');
32 is_num_children($old, 1, 'one container on old ws');
33
34 cmd 'move workspace prev; workspace prev';
35
36 is_num_children($old, 2, 'container moved away');
37
38 done_testing;