]> git.sur5r.net Git - i3/i3/blob - testcases/t/146-floating-reinsert.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 146-floating-reinsert.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 use i3test;
5
6 my $tmp = fresh_workspace;
7
8 my $left = open_window;
9 my $mid = open_window;
10
11 cmd 'split v';
12 my $bottom = open_window;
13
14 my ($nodes, $focus) = get_ws_content($tmp);
15
16 #############################################################################
17 # 1: open a floating window, get it mapped
18 #############################################################################
19
20 # Create a floating window
21 my $window = open_floating_window;
22 ok($window->mapped, 'Window is mapped');
23
24 ($nodes, $focus) = get_ws_content($tmp);
25 is(@{$nodes->[1]->{nodes}}, 2, 'two windows in split con');
26
27 #############################################################################
28 # 2: make it tiling, see where it ends up
29 #############################################################################
30
31 cmd 'floating toggle';
32
33 ($nodes, $focus) = get_ws_content($tmp);
34
35 is(@{$nodes->[1]->{nodes}}, 3, 'three windows in split con after floating toggle');
36
37 done_testing;