debian
docs
i3-input
i3-msg
include
man
src
testcases
t
lib
00-load.t
01-tile.t
02-fullscreen.t
03-unmanaged.t
04-floating.t
05-ipc.t
06-focus.t
07-move.t
08-focus-stack.t
09-stacking.t
10-dock.t
11-goto.t
12-floating-resize.t
13-urgent.t
14-client-leader.t
15-ipc-workspaces.t
16-nestedcons.t
17-workspace.t
18-openkill.t
19-match.t
20-multiple-cmds.t
21-next-prev.t
22-split.t
24-move.t
26-regress-close.t
27-regress-floating-parent.t
28-open-order.t
29-focus-after-close.t
30-close-empty-split.t
31-stacking-order.t
32-move-workspace.t
33-size-hints.t
34-invalid-command.t
35-floating-focus.t
36-floating-ws-empty.t
37-floating-unmap.t
38-floating-attach.t
Makefile
complete-run.pl
tests
website
.gitignore
CMDMODE
DEPENDS
GOALS
LICENSE
Makefile
PACKAGE-MAINTAINER
README.tree
RELEASE-NOTES-3.a-bf1
RELEASE-NOTES-3.b
RELEASE-NOTES-3.c
RELEASE-NOTES-3.d
TODO
common.mk
dump-asy.pl
gtk-tree-watch.pl
i3-wsbar
i3.config
i3.desktop
i3.welcome
logo.svg
pseudo-doc.doxygen
44 lines
1.1 KiB
Perl
44 lines
1.1 KiB
Perl
#!perl
|
|
# vim:ts=4:sw=4:expandtab
|
|
#
|
|
# Check if empty split containers are automatically closed.
|
|
#
|
|
use i3test tests => 4;
|
|
use Time::HiRes qw(sleep);
|
|
|
|
my $i3 = i3("/tmp/nestedcons");
|
|
|
|
my $tmp = get_unused_workspace();
|
|
$i3->command("workspace $tmp")->recv;
|
|
|
|
ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
|
|
|
|
my $first = open_empty_con($i3);
|
|
|
|
$i3->command('split v')->recv;
|
|
|
|
($nodes, $focus) = get_ws_content($tmp);
|
|
|
|
is($nodes->[0]->{focused}, 0, 'split container not focused');
|
|
|
|
# focus the split container
|
|
$i3->command('level up')->recv;
|
|
($nodes, $focus) = get_ws_content($tmp);
|
|
my $split = $focus->[0];
|
|
$i3->command('level down')->recv;
|
|
|
|
my $second = open_empty_con($i3);
|
|
|
|
isnt($first, $second, 'different container focused');
|
|
|
|
##############################################################
|
|
# close both windows and see if the split container still exists
|
|
##############################################################
|
|
|
|
$i3->command('kill')->recv;
|
|
$i3->command('kill')->recv;
|
|
($nodes, $focus) = get_ws_content($tmp);
|
|
isnt($nodes->[0]->{id}, $split, 'split container closed');
|
|
|
|
diag( "Testing i3, Perl $], $^X" );
|