]> git.sur5r.net Git - i3/i3/blob - testcases/t/198-regression-scratchpad-crash.t
Merge branch 'release-4.16.1'
[i3/i3] / testcases / t / 198-regression-scratchpad-crash.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 # When using a command which moves a window to scratchpad from an invisible
18 # (e.g. unfocused) workspace and immediately shows that window again, i3
19 # crashed.
20 # Bug still in: 4.2-305-g22922a9
21 use i3test;
22
23 my $ws1 = fresh_workspace;
24 my $invisible_window = open_window;
25 my $other_focusable_window = open_window;
26
27 my $ws2 = fresh_workspace;
28 my $id = $invisible_window->id;
29 cmd qq|[id="$id"] move scratchpad, scratchpad show|;
30
31 does_i3_live;
32
33 done_testing;