From a63115c491416fc1f02c48c6e07f6d1d57c018fc Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 7 Nov 2026 19:21:59 -1000 Subject: Move the root-readme test to the index tests The test reads the index and the site about page, both drawn by ui-repolist.c. Its site had no repositories, so the index it read was the error page, and a readme printed below the list went unseen. The shared repositories give it a real index. --- tests/t0301-security.sh | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/t0301-security.sh') diff --git a/tests/t0301-security.sh b/tests/t0301-security.sh index 870d2c5..6ea8d45 100755 --- a/tests/t0301-security.sh +++ b/tests/t0301-security.sh @@ -104,18 +104,6 @@ test_expect_success 'non-markdown readme without a filter is escaped as plain te test_grep ! "" tmp ' -# root-readme is the site's own file rather than repository content, so it -# goes out as written, on an about page of its own. -test_expect_success 'root-readme without a filter is its own page, as written' ' - echo "site" >root.html && - cgitrc_site secrootrc "root-readme=$PWD/root.html" && - cgit_rc secrootrc "url=" >tmp && - grep "
  • about" tmp && - ! grep "site" tmp && - cgit_rc secrootrc "p=about" >tmp && - grep "^site$" tmp -' - # A Content-Security-Policy without unsafe-inline stops an inline onchange # handler from ever running, so the option form submits through a plain # button and its selects carry no handlers at all, and nor does any other -- cgit 2.12.1