]> 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 i3_autostart => 0;
8
9 my $config = <<EOT;
10 # i3 config file (v4)
11 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
12
13 fake-outputs 1024x768+0+0,1024x768+1024+0
14 EOT
15 my $pid = launch_with_config($config);
16
17 my $i3 = i3(get_socket_path());
18
19 ####################
20 # Request tree
21 ####################
22
23 my $tree = $i3->get_tree->recv;
24
25 my @outputs = map { $_->{name} } @{$tree->{nodes}};
26 is_deeply(\@outputs, [ '__i3', 'fake-0', 'fake-1' ],
27           'multi-monitor outputs ok');
28
29 exit_gracefully($pid);
30
31 done_testing;