]> git.sur5r.net Git - i3/i3/blob - testcases/t/204-regress-scratchpad-move.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 204-regress-scratchpad-move.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • http://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 # Moves the last window of a workspace to the scratchpad. The workspace will be
18 # cleaned up and previously, the subsequent focusing of a destroyed container
19 # would crash i3.
20 # Ticket: #913
21 # Bug still in: 4.4-97-gf767ac3
22 use i3test;
23
24 my $tmp = fresh_workspace;
25
26 # Open a new window which we can identify later on based on its WM_CLASS.
27 my $scratch = open_window(wm_class => 'special');
28
29 my $tmp2 = fresh_workspace;
30
31 cmd '[class="special"] move scratchpad';
32
33 does_i3_live;
34
35 done_testing;