2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • https://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 # Regression: floating windows are tiling after restarting, closing them crashes i3
21 my $tmp = fresh_workspace;
24 cmd 'floating toggle';
26 my $ws = get_ws($tmp);
27 is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
28 is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');
32 diag('Checking if i3 still lives');
37 is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
38 is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');