2012-09-05 22:03:45 +02:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
2012-09-10 14:09:01 +02:00
|
|
|
#
|
|
|
|
# Please read the following documents before working on tests:
|
2017-09-24 10:19:50 +02:00
|
|
|
# • https://build.i3wm.org/docs/testsuite.html
|
2012-09-10 14:09:01 +02:00
|
|
|
# (or docs/testsuite)
|
|
|
|
#
|
2017-09-24 10:19:50 +02:00
|
|
|
# • https://build.i3wm.org/docs/lib-i3test.html
|
2012-09-10 14:09:01 +02:00
|
|
|
# (alternatively: perldoc ./testcases/lib/i3test.pm)
|
|
|
|
#
|
2017-09-24 10:19:50 +02:00
|
|
|
# • https://build.i3wm.org/docs/ipc.html
|
2012-09-10 14:09:01 +02:00
|
|
|
# (or docs/ipc)
|
|
|
|
#
|
|
|
|
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
|
|
|
|
# (unless you are already familiar with Perl)
|
|
|
|
#
|
2012-09-05 22:03:45 +02:00
|
|
|
# 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;
|