X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F003-ipc.t;h=020e19cc7920a61f38c5ea84a5ffe4c7a71761e1;hb=794783defbb7073f5ca4676e9b088308baac5540;hp=982ece7e9a2c7f232dc530d19b4bfce63edeea7a;hpb=ae1ab9eb273cd2e75f834500d7386d81a925f753;p=i3%2Fi3 diff --git a/testcases/t/003-ipc.t b/testcases/t/003-ipc.t index 982ece7e..020e19cc 100644 --- a/testcases/t/003-ipc.t +++ b/testcases/t/003-ipc.t @@ -1,10 +1,21 @@ #!perl # vim:ts=4:sw=4:expandtab +# +# Please read the following documents before working on tests: +# • http://build.i3wm.org/docs/testsuite.html +# (or docs/testsuite) +# +# • http://build.i3wm.org/docs/lib-i3test.html +# (alternatively: perldoc ./testcases/lib/i3test.pm) +# +# • http://build.i3wm.org/docs/ipc.html +# (or docs/ipc) +# +# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf +# (unless you are already familiar with Perl) use i3test; -my $x = X11::XCB::Connection->new; - fresh_workspace; ##################################################################### @@ -12,14 +23,14 @@ fresh_workspace; ##################################################################### # Create a window so we can get a focus different from NULL -my $window = open_window($x); +my $window = open_window; my $focus = $x->input_focus; # Switch to another workspace fresh_workspace; -sync_with_i3($x); +sync_with_i3; my $new_focus = $x->input_focus; isnt($focus, $new_focus, "Focus changed");