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 # Tests that the ipc window::fullscreen_mode event works properly
19 # Bug still in: 4.7.2-135-g7deb23c
24 sub fullscreen_subtest {
26 my @events = events_for(
27 sub { cmd 'fullscreen' },
30 is(scalar @events, 1, 'Received 1 event');
31 is($events[0]->{container}->{fullscreen_mode}, $want, "fullscreen_mode now $want");
34 subtest 'fullscreen on', \&fullscreen_subtest, 1;
35 subtest 'fullscreen off', \&fullscreen_subtest, 0;