]> git.sur5r.net Git - i3/i3/blob - testcases/t/190-scratchpad-diff-ws.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 190-scratchpad-diff-ws.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 # Test for ticket #676: 'scratchpad show' causes a segfault if the scratchpad
18 # window is shown on another workspace.
19 #
20 use i3test;
21
22 my $i3 = i3(get_socket_path());
23 my $tmp = fresh_workspace;
24
25 my $win = open_window;
26
27 my $scratch = open_window(wm_class => 'special');
28 cmd '[class="special"] move scratchpad';
29
30 is_num_children($tmp, 1, 'one window on current ws');
31
32 my $otmp = fresh_workspace;
33 cmd 'scratchpad show';
34
35 cmd "workspace $tmp";
36 cmd '[class="special"] scratchpad show';
37
38 does_i3_live;
39
40 done_testing;