From: Michael Stapelberg Date: Mon, 29 Nov 2010 19:24:13 +0000 (+0100) Subject: tests: use cmd() in t/32-move-workspace.t X-Git-Tag: tree-pr1~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=613866dbc039e847b319686b3a92b58d32d68f26;p=i3%2Fi3 tests: use cmd() in t/32-move-workspace.t --- 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);