]> git.sur5r.net Git - i3/i3/blob - testcases/t/530-bug-2229.t
a177ee3cf1e62d36bf469cad04a82208fb318ba9
[i3/i3] / testcases / t / 530-bug-2229.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 # Ticket: #2229
18 # Bug still in: 4.11-262-geb631ce
19 use i3test i3_config => <<EOT;
20 # i3 config file (v4)
21 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
22
23 fake-outputs 400x400+0+0,400x400+400+0
24 workspace_auto_back_and_forth no
25 EOT
26
27 # Set it up such that workspace 3 is on the left output and
28 # workspace 4 is on the right output
29 cmd 'focus output fake-0';
30 open_window;
31 cmd 'workspace 3';
32 cmd 'focus output fake-1';
33 cmd 'workspace 4';
34 open_window;
35
36 cmd 'move workspace to output left';
37
38 ok(!workspace_exists('3'), 'workspace 3 has been closed');
39
40 done_testing;