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

@ -24,7 +24,7 @@ check_order('workspace order alright before testing');
cmd "workspace 93";
open_window($x);
open_window;
my @ws = @{$i3->get_workspaces->recv};
my @f = grep { defined($_->{num}) && $_->{num} == 93 } @ws;
@ -32,23 +32,23 @@ is(@f, 1, 'ws 93 found by num');
check_order('workspace order alright after opening 93');
cmd "workspace 92";
open_window($x);
open_window;
check_order('workspace order alright after opening 92');
cmd "workspace 94";
open_window($x);
open_window;
check_order('workspace order alright after opening 94');
cmd "workspace 96";
open_window($x);
open_window;
check_order('workspace order alright after opening 96');
cmd "workspace foo";
open_window($x);
open_window;
check_order('workspace order alright after opening foo');
cmd "workspace 91";
open_window($x);
open_window;
check_order('workspace order alright after opening 91');
done_testing;