2010-03-11 09:58:39 -05:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
|
|
|
|
2010-04-17 16:49:26 -04:00
|
|
|
use i3test tests => 2;
|
2010-03-11 09:58:39 -05:00
|
|
|
use List::MoreUtils qw(all);
|
|
|
|
|
2010-06-02 17:53:22 -04:00
|
|
|
my $i3 = i3("/tmp/nestedcons");
|
2010-03-11 09:58:39 -05:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Request workspaces
|
|
|
|
####################
|
|
|
|
|
2010-06-02 17:53:22 -04:00
|
|
|
SKIP: {
|
|
|
|
skip "IPC API not yet stabilized", 2;
|
|
|
|
|
2010-03-27 10:20:38 -04:00
|
|
|
my $workspaces = $i3->get_workspaces->recv;
|
2010-03-11 09:58:39 -05:00
|
|
|
|
|
|
|
ok(@{$workspaces} > 0, "More than zero workspaces found");
|
|
|
|
|
|
|
|
my $name_exists = all { defined($_->{name}) } @{$workspaces};
|
|
|
|
ok($name_exists, "All workspaces have a name");
|
|
|
|
|
2010-06-02 17:53:22 -04:00
|
|
|
}
|
|
|
|
|
2010-03-11 09:58:39 -05:00
|
|
|
diag( "Testing i3, Perl $], $^X" );
|