From: Maik Fischer Date: Wed, 23 Nov 2011 10:23:37 +0000 (+0100) Subject: testcases: t/144-*: use open_window instead of launching urxvt X-Git-Tag: 4.2~225^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=33e9c2902294b25a5687afbe74d4ecedb5f95cb1;p=i3%2Fi3 testcases: t/144-*: use open_window instead of launching urxvt --- diff --git a/testcases/t/144-regress-floating-resize.t b/testcases/t/144-regress-floating-resize.t index de33eeb3..03318d7a 100644 --- a/testcases/t/144-regress-floating-resize.t +++ b/testcases/t/144-regress-floating-resize.t @@ -11,23 +11,24 @@ use List::Util qw(sum); my $tmp = fresh_workspace; -cmd 'exec /usr/bin/urxvt'; -sleep 0.5; -cmd 'exec /usr/bin/urxvt'; -sleep 0.5; +my $first = open_window; +my $second = open_window; + my ($nodes, $focus) = get_ws_content($tmp); my $old_sum = sum map { $_->{rect}->{width} } @{$nodes}; -#cmd 'open'; + cmd 'resize grow left 10 px or 25 ppt'; cmd 'split v'; -#cmd 'open'; -cmd 'exec /usr/bin/urxvt'; -sleep 0.5; + +sync_with_i3; + +my $third = open_window; + cmd 'mode toggle'; -sleep 0.5; -cmd 'kill'; +sync_with_i3; -sleep 0.5; +cmd 'kill'; +sync_with_i3; ($nodes, $focus) = get_ws_content($tmp); my $new_sum = sum map { $_->{rect}->{width} } @{$nodes};