Diff options
| -rwxr-xr-x | tests/t0104-tree.sh | 13 |
1 file changed, 13 insertions, 0 deletions
diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh index 4cb1c06..dcdeea3 100755 --- a/tests/t0104-tree.sh +++ b/tests/t0104-tree.sh @@ -117,6 +117,19 @@ test_expect_success 'the folder crumbs of a blame page lead to the tree' ' test_grep "href=./nested/tree/a/b/file.txt.>file.txt</a>" tmp ' +# Each hash carries a tooltip naming the author, the committer and the +# subject, with the addresses unless enable-plain-email turns them off. +test_expect_success 'a blame hash is titled with its commit' ' + cgit_ok nestedrc "url=nested/blame/a/b/file.txt" >tmp && + test_grep "<a title=.author A U Thor <author@example.com> 2005-04-01 13:14:15 +0200$" tmp && + test_grep "^committer C O Mitter <committer@example.com> 2005-04-01 13:14:15 +0200$" tmp && + test_grep "^nested. href=./nested/commit/a/b/file.txt?id=" tmp && + cgitrc_repo noemailrc nested enable-blame=1 enable-plain-email=0 && + cgit_ok noemailrc "url=nested/blame/a/b/file.txt" >tmp && + test_grep "<a title=.author A U Thor 2005-04-01 13:14:15 +0200$" tmp && + test_grep "^committer C O Mitter 2005-04-01 13:14:15 +0200$" tmp +' + # A commit's lines link to the file as the parent had it, under the name it # had there, and the commit that created the file has nothing to link to. test_expect_success 'blame links a commit to the file before it' ' |
