Silence "masks earlier declaration in same scope" warnings when executing tests.

This commit is contained in:
Ingo Bürk
2015-06-12 18:19:43 +02:00
parent 1d4b5863a5
commit 73a84886d1
9 changed files with 80 additions and 71 deletions

View File

@ -18,21 +18,23 @@
# Ticket: #1416
use i3test i3_autostart => 0;
my ($config, $pid, $ws, $first, $second, $focused);
#####################################################################
# 1: open a window and check that it takes focus
#####################################################################
my $config = <<EOT;
$config = <<EOT;
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
EOT
my $pid = launch_with_config($config);
$pid = launch_with_config($config);
my $ws = fresh_workspace;
my $first = open_window;
my $focused = get_focused($ws);
my $second = open_window;
$ws = fresh_workspace;
$first = open_window;
$focused = get_focused($ws);
$second = open_window;
isnt(get_focused($ws), $focused, 'focus has changed');
@ -43,19 +45,19 @@ exit_gracefully($pid);
# it doesn't take focus
#####################################################################
my $config = <<EOT;
$config = <<EOT;
# i3 config file (v4)
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
no_focus [instance=notme]
EOT
my $pid = launch_with_config($config);
$pid = launch_with_config($config);
my $ws = fresh_workspace;
my $first = open_window;
my $focused = get_focused($ws);
my $second = open_window(wm_class => 'notme');
$ws = fresh_workspace;
$first = open_window;
$focused = get_focused($ws);
$second = open_window(wm_class => 'notme');
is(get_focused($ws), $focused, 'focus has not changed');