testcases: drop sync_with_i3()s $x parameter, use global

This commit is contained in:
Maik Fischer
2011-11-22 01:13:37 +01:00
committed by Michael Stapelberg
parent 293517fb2e
commit 0702f1fb7b
26 changed files with 59 additions and 61 deletions

View File

@ -26,7 +26,7 @@ ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
my $first = open_window;
my $second = open_window;
sync_with_i3($x);
sync_with_i3;
is($x->input_focus, $second->id, 'second window focused');
my @content = @{get_ws_content($tmp)};
@ -56,7 +56,7 @@ ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
$first = open_window;
$second = open_window;
sync_with_i3($x);
sync_with_i3;
is($x->input_focus, $second->id, 'second window focused');
@content = @{get_ws_content($tmp)};