]> git.sur5r.net Git - i3/i3/blob - testcases/t/191-resize-levels.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 191-resize-levels.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 # Verifies that you can resize across different levels of containers even when
4 # they are all of the same orientation.
5 # (Ticket #754)
6 use i3test;
7
8 my $tmp = fresh_workspace;
9
10 open_window;
11 open_window;
12 cmd 'split v';
13 my $middle = open_window;
14 open_window;
15 cmd 'focus parent';
16 cmd 'split h';
17 open_window;
18
19 cmd '[id="' . $middle->id . '"] focus';
20 is($x->input_focus, $middle->id, 'middle window focused');
21
22 cmd 'resize grow left 10px or 25ppt';
23
24 my ($nodes, $focus) = get_ws_content($tmp);
25
26 ok(cmp_float($nodes->[0]->{percent}, 0.25), 'left container got only 25%');
27 ok(cmp_float($nodes->[1]->{percent}, 0.75), 'right container got 75%');
28
29 done_testing;