tests: introduce is_num_children test

This makes it clearer what the tests are actually doing and kills quite
a bit of useless repetitions
This commit is contained in:
Michael Stapelberg
2012-09-04 22:24:13 +02:00
parent 65e5bcfdf4
commit 232d6ccce9
11 changed files with 123 additions and 90 deletions

View File

@ -45,8 +45,7 @@ my $win = open_window;
my $scratch = open_special;
cmd '[class="special"] move scratchpad';
my ($nodes, $focus) = get_ws_content($tmp);
is(scalar @$nodes, 1, 'one window on current ws');
is_num_children($tmp, 1, 'one window on current ws');
my $otmp = fresh_workspace;
cmd 'scratchpad show';