2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • https://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)
17 # Regression test: verify that a scratchpad container that was open in another
18 # workspace and is moved to the current workspace after a 'scratchpad show' is
21 # Bug still in: 4.15-190-g4b3ff9cd
24 my $expected_focus = open_window;
25 cmd 'move to scratchpad';
26 cmd 'scratchpad show';
27 my $ws = fresh_workspace;
29 cmd 'scratchpad show';
31 is($x->input_focus, $expected_focus->id, 'scratchpad window brought from other workspace is focused');