From d8e17abbe4b08e9a7975062ac5a323835223344b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 1 Nov 2026 18:18:03 -1000 Subject: Name the logo after the site --- tests/t0005-markup.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') 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 "blame - hello.c < dir - hooks - $site" 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 ".Git" 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 && -- cgit 2.12.1