aboutsummaryrefslogtreecommitdiff
path: root/testcases/t/197-regression-move-vanish.t
blob: 7f8f9621d4c36b3521c0fef7694446f912608b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!perl
# vim:ts=4:sw=4:expandtab
#
# Please read the following documents before working on tests:
# • https://build.i3wm.org/docs/testsuite.html
#   (or docs/testsuite)
#
# • https://build.i3wm.org/docs/lib-i3test.html
#   (alternatively: perldoc ./testcases/lib/i3test.pm)
#
# • https://build.i3wm.org/docs/ipc.html
#   (or docs/ipc)
#
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
#   (unless you are already familiar with Perl)
#
# Regression test: moving a window to the right out of a splitv container would
# make it vanish.
# Ticket: #790
# Bug still in: 4.2-277-ga598544
use i3test;

my $ws = fresh_workspace;

my $top = open_window;
cmd 'split v';
my $bottom = open_window;

is_num_children($ws, 2, 'two windows on workspace level');

cmd 'move right';

is_num_children($ws, 2, 'still two windows on workspace level');

done_testing;