X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Ft%2F167-workspace_layout.t;h=553717c523ea06881a239b365b47e7855a8bd455;hb=1b1d7941ecb81de969c82acd8c41ba63b7a58e70;hp=e4b18adfbd5bfe5f86b08b6c1b05b9b6c5b30551;hpb=0a65b770e8af3f8c021b384b439b4cf7d7668643;p=i3%2Fi3 diff --git a/testcases/t/167-workspace_layout.t b/testcases/t/167-workspace_layout.t index e4b18adf..553717c5 100644 --- a/testcases/t/167-workspace_layout.t +++ b/testcases/t/167-workspace_layout.t @@ -33,7 +33,8 @@ my $second = open_window($x); sync_with_i3($x); is($x->input_focus, $second->id, 'second window focused'); -ok(@{get_ws_content($tmp)} == 2, 'two containers opened'); +my @content = @{get_ws_content($tmp)}; +ok(@content == 2, 'two containers opened'); isnt($content[0]->{layout}, 'stacked', 'layout not stacked'); isnt($content[1]->{layout}, 'stacked', 'layout not stacked'); @@ -62,7 +63,7 @@ $second = open_window($x); sync_with_i3($x); is($x->input_focus, $second->id, 'second window focused'); -my @content = @{get_ws_content($tmp)}; +@content = @{get_ws_content($tmp)}; ok(@content == 1, 'one con at workspace level'); is($content[0]->{layout}, 'stacked', 'layout stacked');