Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Lead an error page's title with the error
The config error page had a title of its own, in the reverse order,
and now takes the same one as any other 404, since its message
already says the repository failed to open.
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' ' |
