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

@@ -124,13 +124,13 @@ cmp_ok(@content, '==', 1, 'one node on this workspace now');
is($content[0]->{border}, 'normal', 'normal border');
$window->name('special borderless title');
sync_with_i3 $x;
sync_with_i3;
@content = @{get_ws_content($tmp)};
is($content[0]->{border}, 'none', 'no border');
$window->name('special title');
sync_with_i3 $x;
sync_with_i3;
cmd 'border normal';
@@ -138,7 +138,7 @@ cmd 'border normal';
is($content[0]->{border}, 'normal', 'border reset to normal');
$window->name('special borderless title');
sync_with_i3 $x;
sync_with_i3;
@content = @{get_ws_content($tmp)};
is($content[0]->{border}, 'normal', 'still normal border');
@@ -235,7 +235,7 @@ wait_for_unmap $window;
$window->destroy;
# give i3 a chance to delete the window from its tree
sync_with_i3 $x;
sync_with_i3;
@content = @{get_ws_content($tmp)};
cmp_ok(@content, '==', 0, 'no nodes on this workspace now');
@@ -457,7 +457,7 @@ $x->change_property(
$x->flush;
sync_with_i3 $x;
sync_with_i3;
@content = @{get_ws_content($tmp)};
cmp_ok(@content, '==', 1, 'one node on this workspace now');