testcases: drop sync_with_i3()s $x parameter, use global
This commit is contained in:
committed by
Michael Stapelberg
parent
293517fb2e
commit
0702f1fb7b
@ -24,7 +24,7 @@ is(@urgent, 0, 'no window got the urgent flag');
|
||||
# Add the urgency hint, switch to a different workspace and back again
|
||||
#####################################################################
|
||||
$top->add_hint('urgency');
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
my @content = @{get_ws_content($tmp)};
|
||||
@urgent = grep { $_->{urgent} } @content;
|
||||
@ -41,7 +41,7 @@ cmd '[id="' . $top->id . '"] focus';
|
||||
is(@urgent, 0, 'no window got the urgent flag after focusing');
|
||||
|
||||
$top->add_hint('urgency');
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
@urgent = grep { $_->{urgent} } @{get_ws_content($tmp)};
|
||||
is(@urgent, 0, 'no window got the urgent flag after re-setting urgency hint');
|
||||
@ -55,7 +55,7 @@ ok(!$ws->{urgent}, 'urgent flag not set on workspace');
|
||||
my $otmp = fresh_workspace;
|
||||
|
||||
$top->add_hint('urgency');
|
||||
sync_with_i3($x);
|
||||
sync_with_i3;
|
||||
|
||||
$ws = get_ws($tmp);
|
||||
ok($ws->{urgent}, 'urgent flag set on workspace');
|
||||
|
Reference in New Issue
Block a user