2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://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 # Verifies that you can resize across different levels of containers even when
18 # they are all of the same orientation.
22 my $tmp = fresh_workspace;
27 my $middle = open_window;
33 cmd '[id="' . $middle->id . '"] focus';
34 is($x->input_focus, $middle->id, 'middle window focused');
36 cmd 'resize grow left 10px or 25ppt';
38 my ($nodes, $focus) = get_ws_content($tmp);
40 cmp_float($nodes->[0]->{percent}, 0.25, 'left container got only 25%');
41 cmp_float($nodes->[1]->{percent}, 0.75, 'right container got 75%');