Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0005-markup.sh | 7 |
1 file changed, 7 insertions, 0 deletions
diff --git a/tests/t0005-markup.sh b/tests/t0005-markup.sh index 3260e49..cf9143b 100755 --- a/tests/t0005-markup.sh +++ b/tests/t0005-markup.sh @@ -118,6 +118,13 @@ test_expect_success 'each page names itself, then the repository and the site' ' grep "<title>blame - hello.c < dir - hooks - $site</title>" tmp ' +# The logo is all its link holds, so it is named for where the link leads, +# which by default is the site's index. +test_expect_success 'the logo is named after the site' ' + cgit_rc hooksrc "url=hooks/" >tmp && + grep "<a class=.logo. href=./.><img src=./cgit.png. alt=.Git repository browser.></a>" tmp +' + test_expect_success 'an error page names the error where a page names itself' ' site="Git repository browser" && cgit_rc hooksrc "url=hooks/tree/missing" >tmp && |
