Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Head the tag table's column for what it holds
Diffstat (limited to 'tests/t0102-summary.sh')
| -rwxr-xr-x | tests/t0102-summary.sh | 13 |
1 file changed, 13 insertions, 0 deletions
diff --git a/tests/t0102-summary.sh b/tests/t0102-summary.sh index 9e0e14c..c623202 100755 --- a/tests/t0102-summary.sh +++ b/tests/t0102-summary.sh @@ -146,4 +146,17 @@ test_expect_success 'the refs page fills four columns' 'test_widths both/refs/ 4 test_expect_success 'a page of branches fills four columns' 'test_widths both/refs/heads 4' test_expect_success 'a page of tags fills four columns' 'test_widths both/refs/tags 4' +# 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. +test_expect_success 'the tag table heads its second column for what it holds' ' + cgit_rc colsrc "url=none/refs/" >tmp && + grep "<th class=.left. scope=.col.>Tag</th><th class=.left. scope=.col.>Commit</th>" tmp && + { + echo "snapshots=tar" && + cat colsrc + } >snaprc && + cgit_rc snaprc "url=none/refs/" >tmp && + grep "<th class=.left. scope=.col.>Tag</th><th class=.left. scope=.col.>Download</th>" tmp +' + test_done |
