]> git.sur5r.net Git - i3/i3/blob - testcases/t/143-regress-floating-restart.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 143-regress-floating-restart.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Regression: floating windows are tiling after restarting, closing them crashes i3
5 #
6 use i3test;
7
8 my $tmp = fresh_workspace;
9
10 cmd 'open';
11 cmd 'floating toggle';
12
13 my $ws = get_ws($tmp);
14 is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
15 is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');
16
17 cmd 'restart';
18
19 diag('Checking if i3 still lives');
20
21 does_i3_live;
22
23 $ws = get_ws($tmp);
24 is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
25 is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');
26
27 done_testing;