testcases: t/144-*: use open_window instead of launching urxvt

This commit is contained in:
Maik Fischer 2011-11-23 11:23:37 +01:00 committed by Michael Stapelberg
parent d0d804ba69
commit 33e9c29022
1 changed files with 13 additions and 12 deletions

View File

@ -11,23 +11,24 @@ use List::Util qw(sum);
my $tmp = fresh_workspace; my $tmp = fresh_workspace;
cmd 'exec /usr/bin/urxvt'; my $first = open_window;
sleep 0.5; my $second = open_window;
cmd 'exec /usr/bin/urxvt';
sleep 0.5;
my ($nodes, $focus) = get_ws_content($tmp); my ($nodes, $focus) = get_ws_content($tmp);
my $old_sum = sum map { $_->{rect}->{width} } @{$nodes}; my $old_sum = sum map { $_->{rect}->{width} } @{$nodes};
#cmd 'open';
cmd 'resize grow left 10 px or 25 ppt'; cmd 'resize grow left 10 px or 25 ppt';
cmd 'split v'; cmd 'split v';
#cmd 'open';
cmd 'exec /usr/bin/urxvt';
sleep 0.5;
cmd 'mode toggle';
sleep 0.5;
cmd 'kill';
sleep 0.5; sync_with_i3;
my $third = open_window;
cmd 'mode toggle';
sync_with_i3;
cmd 'kill';
sync_with_i3;
($nodes, $focus) = get_ws_content($tmp); ($nodes, $focus) = get_ws_content($tmp);
my $new_sum = sum map { $_->{rect}->{width} } @{$nodes}; my $new_sum = sum map { $_->{rect}->{width} } @{$nodes};