]> git.sur5r.net Git - i3/i3/blob - testcases/t/178-regress-workspace-open.t
Merge branch 'fix-nagbar-exit'
[i3/i3] / testcases / t / 178-regress-workspace-open.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Tests if empty workspaces are closed when the last child
5 # exits, as long as they're not empty.
6 #
7 use i3test;
8
9 my $i3 = i3(get_socket_path());
10
11 # Get a workspace and open a container
12 my $ws = fresh_workspace;
13 my $con = open_empty_con($i3);
14
15 # Go to a second workspace, kill the container
16 fresh_workspace;
17 cmd "[con_id=\"$con\"] kill";
18
19 # The first workspace should have been closed
20 ok(!workspace_exists($ws), 'workspace closed');
21
22 done_testing;