Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Correct the test comments that went stale
Diffstat (limited to '')
| -rw-r--r-- | tests/filters/dump.lua | 2 | |
| -rwxr-xr-x | tests/t0002-html-validity.sh | 2 | |
| -rwxr-xr-x | tests/t0106-commit.sh | 4 | |
| -rwxr-xr-x | tests/t0109-patch.sh | 3 | |
| -rwxr-xr-x | tests/t0110-snapshot.sh | 9 |
5 files changed, 10 insertions, 10 deletions
diff --git a/tests/filters/dump.lua b/tests/filters/dump.lua index d654621..585538a 100644 --- a/tests/filters/dump.lua +++ b/tests/filters/dump.lua @@ -1,4 +1,4 @@ --- Test fixture for the cgit Lua filter API, exercised by t0201-filters.sh. +-- Test fixture for the cgit Lua filter API. -- It echoes the filter_open arguments and upper-cases the body, which lets -- the test confirm arguments and content flow through the lua: filter path. diff --git a/tests/t0002-html-validity.sh b/tests/t0002-html-validity.sh index 65f6a48..b9020d6 100755 --- a/tests/t0002-html-validity.sh +++ b/tests/t0002-html-validity.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Runs the tidy checker over one page of each kind cgit renders, caring only +# Runs the tidy checker over one page of most kinds cgit renders, caring only # about the shape of the markup. What the pages say is the business of the # t01xx scripts. Tidy is optional and old versions predate the elements cgit # uses, so the file steps aside when a usable one cannot be found. diff --git a/tests/t0106-commit.sh b/tests/t0106-commit.sh index 5564038..6c8361a 100755 --- a/tests/t0106-commit.sh +++ b/tests/t0106-commit.sh @@ -1,8 +1,7 @@ #!/bin/sh # The commit page. Most checks read the markup for the tree link, the parent -# link, the subject and the diffstat. The last few use a root commit, which -# has no parent and diffs against the empty tree. +# link, the subject and the diffstat. test_description='Check content on commit page' . ./setup.sh @@ -38,6 +37,7 @@ test_expect_success 'a commit that changes no files draws no diffstat table' ' ! grep "<table class=.diffstat.>" tmp ' +# A root commit has no parent, so it diffs against the empty tree. test_expect_success 'get root commit' ' root=$(cd repos/foo && git rev-list --reverse HEAD | head -1) && cgit_url "foo/commit&id=$root" >tmp && diff --git a/tests/t0109-patch.sh b/tests/t0109-patch.sh index 64cb415..5c528fc 100755 --- a/tests/t0109-patch.sh +++ b/tests/t0109-patch.sh @@ -2,8 +2,7 @@ # The patch page serves mail ready patches, compared line for line against # git format-patch for a single commit and for a range, once the CGI headers -# are stripped. The last check sets max-patch-count so a range wider than -# the limit comes back cut short. +# are stripped. test_description='Check content on patch page' . ./setup.sh diff --git a/tests/t0110-snapshot.sh b/tests/t0110-snapshot.sh index e3b8087..dbcfb2c 100755 --- a/tests/t0110-snapshot.sh +++ b/tests/t0110-snapshot.sh @@ -1,15 +1,16 @@ #!/bin/sh # The snapshot page hands a branch back as an archive. One function below -# registers the same checks for every tar based format, and each format +# registers the same checks for every compressed tar format, and each format # needs the same compressor cgit pipes through on the server, so one missing -# tool skips that format on both grounds at once. zip follows at the end, -# since unzip shares no flags with the rest. +# tool skips that format on both grounds at once. Plain tar and zip get checks +# of their own, since cgit runs no compressor for either and unzip shares no +# flags with the rest. test_description='Verify snapshot' . ./setup.sh -# Registers the checks for one tar based format. Takes the archive suffix, +# Registers the checks for one compressed tar format. Takes the archive suffix, # the content type the response must carry, the compressor to unpack with and # the name of the prerequisite guarding the checks. test_tar_snapshot() { |
