testcases: drop open_window()s $x parameter, use global one instead

This commit is contained in:
Maik Fischer
2011-11-22 00:47:32 +01:00
committed by Michael Stapelberg
parent e9acd36ce4
commit fce7570f96
36 changed files with 106 additions and 106 deletions

View File

@ -97,7 +97,7 @@ my $second_ws = fresh_workspace;
is(@{get_ws_content($second_ws)}, 0, 'no containers on the second workspace yet');
my $win = open_window($x, { dont_map => 1 });
my $win = open_window({ dont_map => 1 });
mark_window($win->id);
$win->map;
# We dont use wait_for_map because the window will not get mapped -- it is on
@ -112,10 +112,10 @@ is(@{get_ws_content($first_ws)}, 1, 'one container on the first workspace');
# same thing, but with _NET_STARTUP_ID set on the leader
######################################################################
my $leader = open_window($x, { dont_map => 1 });
my $leader = open_window({ dont_map => 1 });
mark_window($leader->id);
$win = open_window($x, { dont_map => 1, client_leader => $leader });
$win = open_window({ dont_map => 1, client_leader => $leader });
$win->map;
sync_with_i3($x);
@ -130,7 +130,7 @@ is(@{get_ws_content($first_ws)}, 2, 'two containers on the first workspace');
complete_startup();
sync_with_i3($x);
my $otherwin = open_window($x);
my $otherwin = open_window;
is(@{get_ws_content($second_ws)}, 1, 'one container on the second workspace');
######################################################################