2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • https://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 floating containers are restored in the correct place in the
18 # hierarchy and get a non-zero size.
20 # Bug still in: 4.10.3-264-g419b73b
22 use File::Temp qw(tempfile);
25 my $ws = fresh_workspace;
27 my @content = @{get_ws_content($ws)};
28 is(@content, 0, 'no nodes on the new workspace yet');
30 my ($fh, $filename) = tempfile(UNLINK => 1);
34 // floating_con with 1 children
36 "floating": "auto_off",
39 "type": "floating_con",
40 // NOTE that "rect" is missing here.
44 "current_border_width": 0,
45 "floating": "user_on",
57 "instance": "^Steam$",
59 // "transient_for": "^$"
68 my $reply = cmd "append_layout $filename";
72 ok($reply->[0]->{success}, 'Layout successfully loaded');
76 ok(workspace_exists($ws), 'Workspace still exists');