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 # Assure that no window is in fullscreen mode after showing a scratchpad window
18 # Bug still in: 4.5.1-54-g0f6b5fe
22 my $tmp = fresh_workspace;
24 ##########################################################################################
25 # map two windows in one container, fullscreen one of them and then move it to scratchpad
26 ##########################################################################################
28 my $first_win = open_window;
29 my $second_win = open_window;
31 # fullscreen the focused window
34 # see if the window really is in fullscreen mode
35 is_num_fullscreen($tmp, 1, 'amount of fullscreen windows after enabling fullscreen');
37 # move window to scratchpad
38 cmd 'move scratchpad';
40 ###############################################################################
41 # show the scratchpad window again; it should not be in fullscreen mode anymore
42 ###############################################################################
44 # show window from scratchpad
45 cmd 'scratchpad show';
47 # switch window back to tiling mode
48 cmd 'floating toggle';
50 # see if no window is in fullscreen mode
51 is_num_fullscreen($tmp, 0, 'amount of fullscreen windows after showing previously fullscreened scratchpad window');
53 ########################################################################################
54 # move a window to scratchpad, focus parent container, make it fullscreen, focus a child
55 ########################################################################################
60 # move one window to scratchpad
61 cmd 'move scratchpad';
66 # fullscreen the container
72 # see if the window really is in fullscreen mode
73 is_num_fullscreen($tmp, 1, 'amount of fullscreen windows after enabling fullscreen on parent');
75 ##########################################################################
76 # show a scratchpad window; no window should be in fullscreen mode anymore
77 ##########################################################################
79 # show the scratchpad window
80 cmd 'scratchpad show';
82 # see if no window is in fullscreen mode
83 is_num_fullscreen($tmp, 0, 'amount of fullscreen windows after showing a scratchpad window while a parent container was in fullscreen mode');