Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test a long subject in the expanded log
Diffstat (limited to 'tests/t0103-log.sh')
| -rwxr-xr-x | tests/t0103-log.sh | 13 |
1 file changed, 13 insertions, 0 deletions
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh index cfd0998..9b48e19 100755 --- a/tests/t0103-log.sh +++ b/tests/t0103-log.sh @@ -233,6 +233,19 @@ test_expect_success 'a message limit below 15 turns the cut off' ' test_grep ">a subject well past fourteen bytes</a>" tmp ' +# With the messages expanded, a subject past the limit is cut at a space and +# the rest of it opens the message below. +test_expect_success 'an expanded log moves the cut part of a subject down' ' + mkrepo repos/wrap 1 && + git -C repos/wrap commit --allow-empty -m "one two three four five six seven eight" && + cgitrc_repo wraprc wrap max-message-length=30 && + cgit_ok wraprc "url=wrap/log/&showmsg=1" >tmp && + test_grep ">one two three four five \.\.\.</a>" tmp && + sed -n "/class=.logmsg.>\$/{n;p;q;}" tmp >msg && + echo "six seven eight" >expect && + test_cmp expect msg +' + test_expect_success 'the log draws the commit graph when enabled' ' cgitrc_copy graphrc enable-commit-graph=1 && cgit_ok graphrc "url=foo/log/" >tmp && |
