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

@ -56,7 +56,7 @@ $original_rect = $new_rect;
$window->fullscreen(1);
sync_with_i3($x);
sync_with_i3;
$new_rect = $window->rect;
ok(!eq_deeply($new_rect, $original_rect), "Window got repositioned after fullscreen");
@ -123,7 +123,7 @@ my $swindow = $x->root->create_child(
$swindow->map;
sync_with_i3($x);
sync_with_i3;
ok(!$swindow->mapped, 'window not mapped while fullscreen window active');
@ -131,12 +131,12 @@ $new_rect = $swindow->rect;
ok(!eq_deeply($new_rect, $original_rect), "Window got repositioned");
$swindow->fullscreen(1);
sync_with_i3($x);
sync_with_i3;
is(fullscreen_windows(), 1, 'amount of fullscreen windows');
$window->fullscreen(0);
sync_with_i3($x);
sync_with_i3;
is(fullscreen_windows(), 0, 'amount of fullscreen windows');
ok($swindow->mapped, 'window mapped after other fullscreen ended');
@ -148,7 +148,7 @@ ok($swindow->mapped, 'window mapped after other fullscreen ended');
###########################################################################
$swindow->fullscreen(0);
sync_with_i3($x);
sync_with_i3;
is(fullscreen_windows(), 0, 'amount of fullscreen windows after disabling');