tests: clean up/beautify all tests (code style / test style)

This commit is contained in:
Michael Stapelberg
2011-03-09 20:25:17 +01:00
parent 57e7cc8f6a
commit 2524b5262d
53 changed files with 334 additions and 415 deletions

View File

@ -11,12 +11,11 @@
# This testcase checks that the tree is properly flattened after moving.
#
use X11::XCB qw(:all);
use i3test tests => 2;
use i3test;
my $x = X11::XCB::Connection->new;
my $tmp = get_unused_workspace;
cmd "workspace $tmp";
my $tmp = fresh_workspace;
my $left = open_standard_window($x);
sleep 0.25;
@ -31,3 +30,5 @@ my $ws = get_ws($tmp);
is($ws->{orientation}, 'horizontal', 'workspace orientation is horizontal');
is(@{$ws->{nodes}}, 3, 'all three windows on workspace level');
done_testing;