]> git.sur5r.net Git - i3/i3/blob - testcases/t/303-regress-move-floating.t
attach_to_workspace: set new parent before tree_render
[i3/i3] / testcases / t / 303-regress-move-floating.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • https://build.i3wm.org/docs/ipc.html
12 #   (or docs/ipc)
13 #
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 #   (unless you are already familiar with Perl)
16 #
17 # Regression: moving a container which is the only child of the only child of a
18 # floating container crashes i3.
19 # Ticket: #3556
20 # Bug still in: 4.16-61-g376833db4
21 use i3test;
22
23 my $ws = fresh_workspace;
24 open_window;
25 open_window;
26 cmd 'split v, focus parent, floating toggle, focus child, move right';
27 does_i3_live;
28
29 $ws = get_ws($ws);
30 is(scalar @{$ws->{floating_nodes}}, 0, 'No floating nodes in workspace');
31 is(scalar @{$ws->{nodes}}, 2, 'Two tiling nodes in workspace');
32
33 done_testing;