From 613866dbc039e847b319686b3a92b58d32d68f26 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 29 Nov 2010 20:24:13 +0100 Subject: [PATCH] tests: use cmd() in t/32-move-workspace.t --- testcases/t/32-move-workspace.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testcases/t/32-move-workspace.t b/testcases/t/32-move-workspace.t index ceef9887..09e90a8c 100644 --- a/testcases/t/32-move-workspace.t +++ b/testcases/t/32-move-workspace.t @@ -15,7 +15,7 @@ $x->root->warp_pointer(0, 0); my $tmp = get_unused_workspace(); my $tmp2 = get_unused_workspace(); -$i3->command("workspace $tmp")->recv; +cmd "workspace $tmp"; ok(@{get_ws_content($tmp)} == 0, 'no containers yet'); @@ -23,12 +23,12 @@ my $first = open_empty_con($i3); my $second = open_empty_con($i3); ok(@{get_ws_content($tmp)} == 2, 'two containers on first ws'); -$i3->command("workspace $tmp2")->recv; +cmd "workspace $tmp2"; ok(@{get_ws_content($tmp2)} == 0, 'no containers on second ws yet'); -$i3->command("workspace $tmp")->recv; +cmd "workspace $tmp"; -$i3->command("move workspace $tmp2")->recv; +cmd "move workspace $tmp2"; ok(@{get_ws_content($tmp)} == 1, 'one container on first ws anymore'); ok(@{get_ws_content($tmp2)} == 1, 'one container on second ws'); my ($nodes, $focus) = get_ws_content($tmp2);