]> git.sur5r.net Git - i3/i3/blob - testcases/t/500-multi-monitor.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 500-multi-monitor.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Tests that the provided X-Server to the t/5??-*.t tests is actually providing
5 # multiple monitors.
6 #
7 use i3test;
8
9 my $i3 = i3(get_socket_path());
10
11 ####################
12 # Request tree
13 ####################
14
15 my $tree = $i3->get_tree->recv;
16
17 my @outputs = map { $_->{name} } @{$tree->{nodes}};
18 is_deeply(\@outputs, [ '__i3', 'xinerama-0', 'xinerama-1' ],
19           'multi-monitor outputs ok');
20
21 done_testing;