]> git.sur5r.net Git - i3/i3/blob - testcases/t/003-ipc.t
tests: replace http:// with https:// where appropriate
[i3/i3] / testcases / t / 003-ipc.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 use i3test;
18
19 fresh_workspace;
20
21 #####################################################################
22 # Ensure IPC works by switching workspaces
23 #####################################################################
24
25 # Create a window so we can get a focus different from NULL
26 my $window = open_window;
27
28 my $focus = $x->input_focus;
29
30 # Switch to another workspace
31 fresh_workspace;
32
33 sync_with_i3;
34 my $new_focus = $x->input_focus;
35 isnt($focus, $new_focus, "Focus changed");
36
37 done_testing;