diff options
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 |
