Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Label the age column of a followed log
Diffstat (limited to '')
| -rwxr-xr-x | tests/t0103-log.sh | 12 |
1 file changed, 12 insertions, 0 deletions
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh index d7e745d..4306d8c 100755 --- a/tests/t0103-log.sh +++ b/tests/t0103-log.sh @@ -111,6 +111,18 @@ test_expect_success 'the log draws the commit graph when enabled' ' grep "<th scope=.col. aria-label=.Graph.></th>" tmp ' +# A followed log is walked without the graph, so its first column holds the +# age whatever enable-commit-graph says. +test_expect_success 'a followed log heads its age column with the graph on' ' + { + echo "enable-commit-graph=1" && + cat folrc + } >folgraphrc && + CGIT_CONFIG="$PWD/folgraphrc" QUERY_STRING="url=fol/log/b.txt&follow=1" cgit >tmp && + grep "<th class=.left. scope=.col.>Age</th><th class=.left. scope=.col.>Commit message" tmp && + ! grep "aria-label=.Graph." tmp +' + # The search is literal, so text that is no valid regular expression still # finds the commit holding it. test_expect_success 'a search for brackets matches them literally' ' |
