tests: use i3_config arg instead of precisely one launch_with_config
This way, tests are shorter, and i3test’s invocation of launch_with_config parallelizes work better, using dont_block => 1.
This commit is contained in:
@ -18,13 +18,7 @@
|
||||
# over an unfocused workspace.
|
||||
# Ticket: #2681
|
||||
# Bug still in: 4.13-210-g80c23afa
|
||||
use i3test i3_autostart => 0;
|
||||
|
||||
# Ensure the pointer is at (0, 0) so that we really start on the first
|
||||
# (the left) workspace.
|
||||
$x->root->warp_pointer(0, 0);
|
||||
|
||||
my $config = <<EOT;
|
||||
use i3test i3_config => <<EOT;
|
||||
# i3 config file (v4)
|
||||
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||
|
||||
@ -33,8 +27,6 @@ fake-outputs 1024x768+0+0,1024x768+1024+0
|
||||
focus_follows_mouse no
|
||||
EOT
|
||||
|
||||
my $pid = launch_with_config($config);
|
||||
|
||||
cmd 'focus output fake-0';
|
||||
my $s0_ws = fresh_workspace;
|
||||
|
||||
@ -56,6 +48,4 @@ my $reply = $x->query_pointer_reply($cookie->{sequence});
|
||||
cmp_ok($reply->{root_x}, '<', 1024, 'pointer still on fake-0');
|
||||
cmp_ok($reply->{root_y}, '<', 768, 'pointer still on fake-0');
|
||||
|
||||
exit_gracefully($pid);
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user