Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Check where the oversized file diff links to
The small file test also read the page the test before it left, so it
renders the commit itself now.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0204-limits.sh | 8 |
1 file changed, 4 insertions, 4 deletions
diff --git a/tests/t0204-limits.sh b/tests/t0204-limits.sh index 1b8ec4b..9f87ef8 100755 --- a/tests/t0204-limits.sh +++ b/tests/t0204-limits.sh @@ -131,13 +131,13 @@ test_expect_success 'a negative ref count lists every ref' ' # The rest of the commit still renders, so one huge file cannot hide the # small change beside it. test_expect_success 'oversized file diff is replaced by a link' ' - cgit_rc limitrc "url=limits/commit/" >tmp && - grep "too large to be rendered inline" tmp && - grep "View it on its own page" tmp + cgit_ok limitrc "url=limits/commit/" >tmp && + test_grep "<div class=.truncated.>This diff is too large to be rendered inline. <a href=./limits/diff/big.c.>View it on its own page</a>.</div>" tmp ' test_expect_success 'small file in the same commit still renders inline' ' - grep "class=.add.>+int y;" tmp + cgit_ok limitrc "url=limits/commit/" >tmp && + test_grep "class=.add.>+int y;" tmp ' test_expect_success 'the single-file diff page always renders in full' ' |
