X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F500-multi-monitor.t;h=3df2ba3f779303015731028bed1141d5a367bc29;hb=70067c72d5cf7a443942dbac31efffde44e510cf;hp=1f42f0bbba820fedf7eccda7c8707c896e6274d8;hpb=fd8e1c98c91c86300904ae85dd22657dcb291bf5;p=i3%2Fi3 diff --git a/testcases/t/500-multi-monitor.t b/testcases/t/500-multi-monitor.t index 1f42f0bb..3df2ba3f 100644 --- a/testcases/t/500-multi-monitor.t +++ b/testcases/t/500-multi-monitor.t @@ -1,10 +1,31 @@ #!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) +# # Tests that the provided X-Server to the t/5??-*.t tests is actually providing # multiple monitors. # -use i3test; +use i3test i3_autostart => 0; + +my $config = <get_tree->recv; my @outputs = map { $_->{name} } @{$tree->{nodes}}; -is_deeply(\@outputs, [ '__i3', 'xinerama-0', 'xinerama-1' ], +is_deeply(\@outputs, [ '__i3', 'fake-0', 'fake-1' ], 'multi-monitor outputs ok'); +exit_gracefully($pid); + done_testing;