2 # vim:ts=4:sw=4:expandtab
6 my $tmp = fresh_workspace;
8 my $left = open_window;
12 my $bottom = open_window;
14 my ($nodes, $focus) = get_ws_content($tmp);
16 #############################################################################
17 # 1: open a floating window, get it mapped
18 #############################################################################
20 # Create a floating window
21 my $window = open_floating_window;
22 ok($window->mapped, 'Window is mapped');
24 ($nodes, $focus) = get_ws_content($tmp);
25 is(@{$nodes->[1]->{nodes}}, 2, 'two windows in split con');
27 #############################################################################
28 # 2: make it tiling, see where it ends up
29 #############################################################################
31 cmd 'floating toggle';
33 ($nodes, $focus) = get_ws_content($tmp);
35 is(@{$nodes->[1]->{nodes}}, 3, 'three windows in split con after floating toggle');