X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=testcases%2Ft%2F112-floating-resize.t;h=52817d709d0ed8784cfcb98ac51d6a8de41c0612;hp=931b34fb72dc013cb69bb7d55c026303c52b8801;hb=a930994dc983190c9f43f262d496f97285604a76;hpb=422846e1c5a74a500a383ace37742fea503136f5 diff --git a/testcases/t/112-floating-resize.t b/testcases/t/112-floating-resize.t index 931b34fb..52817d70 100644 --- a/testcases/t/112-floating-resize.t +++ b/testcases/t/112-floating-resize.t @@ -2,13 +2,6 @@ # vim:ts=4:sw=4:expandtab use i3test; -use X11::XCB qw(:all); - -BEGIN { - use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection'); -} - -my $x = X11::XCB::Connection->new; fresh_workspace; @@ -16,13 +9,13 @@ fresh_workspace; # Create a floating window and see if resizing works ##################################################################### -my $window = open_floating_window($x); +my $window = open_floating_window; # See if configurerequests cause window movements (they should not) 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'); @@ -30,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; @@ -41,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;