testcases: drop open_window()s $x parameter, use global one instead
This commit is contained in:
committed by
Michael Stapelberg
parent
e9acd36ce4
commit
fce7570f96
@ -9,8 +9,8 @@ my $tmp = fresh_workspace;
|
||||
# 1: see if focus stays the same when toggling tiling/floating mode
|
||||
#############################################################################
|
||||
|
||||
my $first = open_window($x);
|
||||
my $second = open_window($x);
|
||||
my $first = open_window;
|
||||
my $second = open_window;
|
||||
|
||||
is($x->input_focus, $second->id, 'second window focused');
|
||||
|
||||
@ -26,9 +26,9 @@ is($x->input_focus, $second->id, 'second window still focused after mode toggle'
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
$first = open_window($x); # window 2
|
||||
$second = open_window($x); # window 3
|
||||
my $third = open_window($x); # window 4
|
||||
$first = open_window; # window 2
|
||||
$second = open_window; # window 3
|
||||
my $third = open_window; # window 4
|
||||
|
||||
is($x->input_focus, $third->id, 'last container focused');
|
||||
|
||||
@ -57,9 +57,9 @@ is($x->input_focus, $second->id, 'second con still focused after killing third')
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
$first = open_window($x, { background_color => '#ff0000' }); # window 5
|
||||
$second = open_window($x, { background_color => '#00ff00' }); # window 6
|
||||
$third = open_window($x, { background_color => '#0000ff' }); # window 7
|
||||
$first = open_window({ background_color => '#ff0000' }); # window 5
|
||||
$second = open_window({ background_color => '#00ff00' }); # window 6
|
||||
$third = open_window({ background_color => '#0000ff' }); # window 7
|
||||
|
||||
is($x->input_focus, $third->id, 'last container focused');
|
||||
|
||||
@ -91,11 +91,11 @@ is($x->input_focus, $first->id, 'first con focused after killing all floating co
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
$first = open_window($x, { background_color => '#ff0000' }); # window 5
|
||||
$first = open_window({ background_color => '#ff0000' }); # window 5
|
||||
cmd 'split v';
|
||||
cmd 'layout stacked';
|
||||
$second = open_window($x, { background_color => '#00ff00' }); # window 6
|
||||
$third = open_window($x, { background_color => '#0000ff' }); # window 7
|
||||
$second = open_window({ background_color => '#00ff00' }); # window 6
|
||||
$third = open_window({ background_color => '#0000ff' }); # window 7
|
||||
|
||||
is($x->input_focus, $third->id, 'last container focused');
|
||||
|
||||
@ -129,8 +129,8 @@ is($x->input_focus, $first->id, 'first con focused after killing all floating co
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
$first = open_window($x, { background_color => '#ff0000' }); # window 8
|
||||
$second = open_window($x, { background_color => '#00ff00' }); # window 9
|
||||
$first = open_window({ background_color => '#ff0000' }); # window 8
|
||||
$second = open_window({ background_color => '#00ff00' }); # window 9
|
||||
|
||||
sync_with_i3($x);
|
||||
|
||||
|
Reference in New Issue
Block a user