]> git.sur5r.net Git - i3/i3/blob - testcases/t/179-regress-multiple-ws.t
Bugfix: Correctly return to initial state after prev/next/back_and_forth (Thanks...
[i3/i3] / testcases / t / 179-regress-multiple-ws.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # The command "move workspace prev; workspace prev" will lead to an error.
5 # This regression is present in 7f9b65f6a752e454c492447be4e21e2ee8faf8fd
6 use i3test;
7
8 my $i3 = i3(get_socket_path());
9
10 # Open one workspace to move the con to
11 my $old = fresh_workspace;
12 my $keep_open_con = open_empty_con($i3);
13
14 # Get a workspace and open a container
15 my $tmp = fresh_workspace;
16 my $con = open_empty_con($i3);
17
18 is(@{get_ws_content($tmp)}, 1, 'one container');
19 is(@{get_ws_content($old)}, 1, 'one container on old ws');
20
21 cmd 'move workspace prev; workspace prev';
22
23 is(@{get_ws_content($old)}, 2, 'container moved away');
24
25 done_testing;