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: moving a container which is the only child of the only child of a
18 # floating container crashes i3.
20 # Bug still in: 4.16-61-g376833db4
23 my $ws = fresh_workspace;
26 cmd 'split v, focus parent, floating toggle, focus child, move right';
30 is(scalar @{$ws->{floating_nodes}}, 0, 'No floating nodes in workspace');
31 is(scalar @{$ws->{nodes}}, 2, 'Two tiling nodes in workspace');