diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test the features the suite never reached
Index sorting, the commit graph, the stats periods past a week, the hex
dump of a binary file and a Lua filter's html_url_arg and html_include
ran in no test.
Diffstat (limited to 'tests/t0112-stats.sh')
| -rwxr-xr-x | tests/t0112-stats.sh | 11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 11 insertions, 0 deletions
diff --git a/tests/t0112-stats.sh b/tests/t0112-stats.sh index 4d61e6c..7b08a6b 100755 --- a/tests/t0112-stats.sh +++ b/tests/t0112-stats.sh @@ -85,4 +85,15 @@ test_expect_success 'max-stats bounds the selectable periods' ' ! grep "<option value=.q." tmp ' +# Each period buckets commits and labels its columns its own way, so every one +# gets a page of its own here. +test_expect_success 'every period renders its own columns' ' + statq "url=stat/stats/&period=m" >tmp && + grep -E "<th[^>]*>[A-Z][a-z][a-z] [0-9]{4}</th>" tmp && + statq "url=stat/stats/&period=q" >tmp && + grep -E "<th[^>]*>Q[1-4] [0-9]{4}</th>" tmp && + statq "url=stat/stats/&period=y" >tmp && + grep -E "<th[^>]*>[0-9]{4}</th>" tmp +' + test_done |
