Diff options
Diffstat (limited to 'tests/t0204-limits.sh')
| -rwxr-xr-x | tests/t0204-limits.sh | 13 |
1 file changed, 11 insertions, 2 deletions
diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index 00f9326..1b8ec4b 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -111,8 +111,17 @@ test_expect_success 'a negative ref count lists every ref' ' cgit_rc count$n.rc "url=limits/" >summary$n || return 1 done && - grep "log/?h=branch-3" refs0 && - grep "/tag/?h=tag-3" summary0 && + for page in refs0 summary0 + do + test $(grep -c "<tr class=.branch.>" $page) = 4 && + test_grep "href=./limits/log/.>master</a>" $page && + test $(grep -c "<tr class=.tag.>" $page) = 3 && + for n in 1 2 3 + do + test_grep "href=./limits/log/?h=branch-$n.>" $page && + test_grep "href=./limits/tag/?h=tag-$n.>" $page || return 1 + done || return 1 + done && test_cmp refs0 refs-1 && test_cmp summary0 summary-1 ' |
