Diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0005-markup.sh | 13 |
1 file changed, 13 insertions, 0 deletions
diff --git a/tests/t0005-markup.sh b/tests/t0005-markup.sh index a6dd028..3260e49 100755 --- a/tests/t0005-markup.sh +++ b/tests/t0005-markup.sh @@ -118,6 +118,19 @@ test_expect_success 'each page names itself, then the repository and the site' ' grep "<title>blame - hello.c < dir - hooks - $site</title>" 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 && + grep "^Status: 404" tmp && + grep "<title>Not Found - hooks - $site</title>" tmp && + cgit_rc hooksrc "url=hooks/nonsense/" >tmp && + grep "<title>Not Found - hooks - $site</title>" tmp && + cgitrc_repo brokenrc broken "repo.path=$PWD/nowhere" && + cgit_rc brokenrc "url=broken/" >tmp && + grep "Failed to open broken" tmp && + grep "<title>Not Found - $site</title>" tmp +' + # A browser gives these elements a monospace font of its own, which would # otherwise win over the one a theme sets through --font-mono. test_expect_success 'every monospace element takes the theme font' ' |
