testcases: let i3test.pm export $x, adapt testcases

This commit is contained in:
Maik Fischer
2011-11-21 21:39:50 +01:00
committed by Michael Stapelberg
parent 1b1d7941ec
commit 30ea33decb
52 changed files with 15 additions and 239 deletions

View File

@ -3,11 +3,6 @@
# Regression test: when only having a floating window on a workspace, it should not be deleted.
use i3test;
use X11::XCB qw(:all);
BEGIN {
use_ok('X11::XCB::Window');
}
my $i3 = i3(get_socket_path());
@ -19,8 +14,6 @@ my $tmp = fresh_workspace;
ok(workspace_exists($tmp), "workspace $tmp exists");
my $x = X11::XCB::Connection->new;
# Create a floating window which is smaller than the minimum enforced size of i3
my $window = open_floating_window($x);
ok($window->mapped, 'Window is mapped');