From 47fe31f104165d862cc7afeed9607a8e193ae6f7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Nov 2010 21:28:44 +0100 Subject: [PATCH] =?utf8?q?tests:=20fix=20t/31-stacking-order.t:=20don?= =?utf8?q?=E2=80=99t=20get=20focus=20on=20workspace=20level,=20use=20get?= =?utf8?q?=5Ffocused()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- testcases/t/31-stacking-order.t | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/testcases/t/31-stacking-order.t b/testcases/t/31-stacking-order.t index 747d5b57..3335cba7 100644 --- a/testcases/t/31-stacking-order.t +++ b/testcases/t/31-stacking-order.t @@ -28,16 +28,13 @@ isnt($first, $second, 'two different containers opened'); ############################################################## $i3->command('layout stacking')->recv; -my ($nodes, $focus) = get_ws_content($tmp); -is($focus->[0], $second, 'second container still focused'); +is(get_focused($tmp), $second, 'second container still focused'); $i3->command('next v')->recv; -($nodes, $focus) = get_ws_content($tmp); -is($focus->[0], $first, 'first container focused'); +is(get_focused($tmp), $first, 'first container focused'); $i3->command('prev v')->recv; -($nodes, $focus) = get_ws_content($tmp); -is($focus->[0], $second, 'second container focused again'); +is(get_focused($tmp), $second, 'second container focused again'); ############################################################## # now change the orientation to horizontal and cycle @@ -48,12 +45,10 @@ $i3->command('split h')->recv; $i3->command('level down')->recv; $i3->command('next v')->recv; -($nodes, $focus) = get_ws_content($tmp); -is($focus->[0], $first, 'first container focused'); +is(get_focused($tmp), $first, 'first container focused'); $i3->command('prev v')->recv; -($nodes, $focus) = get_ws_content($tmp); -is($focus->[0], $second, 'second container focused again'); +is(get_focused($tmp), $second, 'second container focused again'); diag( "Testing i3, Perl $], $^X" ); -- 2.39.5