Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Check the tag cells hold what their heading names
Only the heading was checked, so a heading and cells that disagreed
about snapshots passed.
Diffstat (limited to 'tests/t0102-summary.sh')
| -rwxr-xr-x | tests/t0102-summary.sh | 5 |
1 file changed, 4 insertions, 1 deletion
diff --git a/tests/t0102-summary.sh b/tests/t0102-summary.sh index 019c8e6..104da68 100755 --- a/tests/t0102-summary.sh +++ b/tests/t0102-summary.sh @@ -168,15 +168,18 @@ test_expect_success 'a page of tags fills four columns' 'test_widths both/refs/t # The tag table's second column holds the downloads, or with no snapshot # format the object each tag points at, and is headed for what it holds. +# Both tags carry the same date, so either may be the one row shown. test_expect_success 'the tag table heads its second column for what it holds' ' cgit_ok colsrc "url=none/refs/" >tmp && grep "<th class=.left. scope=.col.>Tag</th><th class=.left. scope=.col.>Commit</th>" tmp && + test_grep "<tr class=.tag.><td><a href=./none/tag/?h=[a-z]*.>[a-z]*</a></td><td><a href=./none/commit/?id=[0-9a-f]*.>commit " tmp && { echo "snapshots=tar" && cat colsrc } >snaprc && cgit_ok snaprc "url=none/refs/" >tmp && - grep "<th class=.left. scope=.col.>Tag</th><th class=.left. scope=.col.>Download</th>" tmp + grep "<th class=.left. scope=.col.>Tag</th><th class=.left. scope=.col.>Download</th>" tmp && + test_grep "<tr class=.tag.><td><a href=./none/tag/?h=[a-z]*.>[a-z]*</a></td><td><span class=.snapshot.><a href=./none/snapshot/none-[a-z]*\.tar.>" tmp ' test_done |
