AgeCommit message (Collapse)AuthorLines
Test the clamp on the page offsetBryce Kwon-0/+10
Test the clamp on the diff contextBryce Kwon-0/+20
Tell the whole commit notice from the per file oneBryce Kwon-4/+4
Both open with the same sentence, so a grep for it passed on either.
Check where the oversized file diff links toBryce Kwon-4/+4
The small file test also read the page the test before it left, so it renders the commit itself now.
Count every ref a count of 0 listsBryce Kwon-2/+11
One branch and one tag stood for the whole listing, so a count of 0 that dropped the rest still passed, and -1 is only compared with it.
Match the overflow links on the refs pageBryce Kwon-2/+3
The test read the page the test before it left and looked for the bare path, which other links on the page also hold.
Move the directory diff caps test to the limitsBryce Kwon-0/+19
Measure the clamped query without grep -oBryce Kwon-1/+7
grep -o is not in POSIX, while awk's match is.
Check that a ref page lists from its offsetBryce Kwon-9/+18
Both paging tests would have passed with the listing ignoring ofs, since the prev link comes from ofs alone.
Show a blob at exactly max-blob-sizeBryce Kwon-0/+14
No fixture's size in whole kilobytes equalled the limit, so turning the comparison into greater or equal passed every test.
Test a followed single-file diff against the capBryce Kwon-5/+20
Follow empties the prefix, and the cap has to come from the path asked for, as the source warns. Only the line cap can show that. The pairs are filtered before they are counted, so a single-file page counts one file whatever the cap, and a followed check under max-diff-files could never fail.
Keep the range in a large diff's patch linkBryce Kwon-0/+11
The link named only id, so for a diff between two commits it led to a patch of the newer one alone, and without an id it lost the branch as well and led to the default branch's tip.
Move the later tests to the config writersBryce Kwon-38/+16
The one-line request wrappers go with them. Configs with several repositories, a key out of place on purpose, the cache on or no repository of their own stay written out.
Drop test lines that add nothingBryce Kwon-1/+0
The trash directory starts empty and setup.sh already made the cache, the clamp check already fails on a short query, and the commit the setup named is still there to pin.
Tighten the checks that match stray textBryce Kwon-1/+1
Every page holds foo in its footer element, the foo+bar row holds bar, the branch switcher holds master, and commit 1 and file-1 also match commits 10 to 19 and file-10 to file-19. A search page repeats its term in the search box. So these checks passed on pages that lacked what they look for, and each now matches the link itself.
Move the highlighter fallback check into t0502Bryce Kwon-23/+0
t0502 owns the shipped highlighter and already writes a cgitrc naming it, so the check needs no config of its own there. t0204's header still called it the last case long after it stopped being one.
Hold patch and rawdiff to max-blob-sizeBryce Kwon-0/+18
Both pages hand the diff to git, whose own limit on an inlined blob is 512 MB, so a commit adding a blob the other views refuse was inflated and diffed in full. The cap is passed through to git, which shows such a blob as binary.
Read a negative ref count as no limitBryce Kwon-0/+20
summary-branches, summary-tags and max-ref-count already listed every ref at 0, but a negative value reached qsort as a count and crashed the summary and refs pages, and emptied the branch switcher.
Share the max-blob-size check and its refusalBryce Kwon-0/+13
Five copies of the test and four of the error page had to agree by hand. The new check pins the four refusals, which no test covered.
Test the hardening passBryce Kwon-2/+5
Trim the comments and dead code across the treeBryce Kwon-8/+6
Collect test output under trash and resultsBryce Kwon-1/+1
Prefer POSIX forms throughout the test scriptsBryce Kwon-3/+4
Renumber the test scripts into themed rangesBryce Kwon-0/+0
The numbering walks outward from the ground the suite stands on. - t000x for the git version, html validity and the cache - t01xx for page content, one script per page - t02xx for filters, submodule links, dates and limits, which cut across pages - t03xx for defence, the security regressions and the $HOME promise - t04xx for the helper tools under tools/