]> git.sur5r.net Git - i3/i3/blob - testcases/t/197-regression-move-vanish.t
Merge pull request #3451 from orestisf1993/tray
[i3/i3] / testcases / t / 197-regression-move-vanish.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • https://build.i3wm.org/docs/ipc.html
12 #   (or docs/ipc)
13 #
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 #   (unless you are already familiar with Perl)
16 #
17 # Regression test: moving a window to the right out of a splitv container would
18 # make it vanish.
19 # Ticket: #790
20 # Bug still in: 4.2-277-ga598544
21 use i3test;
22
23 my $ws = fresh_workspace;
24
25 my $top = open_window;
26 cmd 'split v';
27 my $bottom = open_window;
28
29 is_num_children($ws, 2, 'two windows on workspace level');
30
31 cmd 'move right';
32
33 is_num_children($ws, 2, 'still two windows on workspace level');
34
35 done_testing;