2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
18 # Bug still in: 4.11-262-geb631ce
19 use i3test i3_config => <<EOT;
21 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
23 fake-outputs 400x400+0+0,400x400+400+0
24 workspace_auto_back_and_forth no
27 my $i3 = i3(get_socket_path());
29 # Set it up such that workspace 3 is on the left output and
30 # workspace 4 is on the right output
31 cmd 'focus output fake-0';
34 cmd 'focus output fake-1';
38 cmd 'move workspace to output left';
40 # ensure that workspace 3 has now vanished
41 my $get_ws = $i3->get_workspaces->recv;
42 my @ws_names = map { $_->{name} } @$get_ws;
43 # TODO get rid of smartmatch
44 ok(!('3' ~~ @ws_names), 'workspace 3 has been closed');