testcases: drop sync_with_i3()s $x parameter, use global
This commit is contained in:
committed by
Michael Stapelberg
parent
293517fb2e
commit
0702f1fb7b
@ -15,7 +15,7 @@ my $window = open_floating_window;
|
||||
my ($a, $t) = $window->rect;
|
||||
$window->rect(X11::XCB::Rect->new(x => $a->x, y => $a->y, width => $a->width, height => $a->height));
|
||||
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
my ($na, $nt) = $window->rect;
|
||||
is_deeply($na, $a, 'Rects are equal after configurerequest');
|
||||
@ -23,7 +23,7 @@ is_deeply($na, $a, 'Rects are equal after configurerequest');
|
||||
sub test_resize {
|
||||
$window->rect(X11::XCB::Rect->new(x => 0, y => 0, width => 100, height => 100));
|
||||
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
my ($absolute, $top) = $window->rect;
|
||||
|
||||
@ -34,7 +34,7 @@ sub test_resize {
|
||||
|
||||
$window->rect(X11::XCB::Rect->new(x => 0, y => 0, width => 300, height => 500));
|
||||
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
($absolute, $top) = $window->rect;
|
||||
|
||||
|
Reference in New Issue
Block a user