Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Let a keyboard scroll the stats table
It scrolls sideways like the hex dump, with nothing inside a keyboard
can reach, so it takes focus and the shared focus ring the same way.
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/t0112-stats.sh | 6 |
1 file changed, 6 insertions, 0 deletions
diff --git a/tests/t0112-stats.sh b/tests/t0112-stats.sh index 722a61c..4b45ee8 100755 --- a/tests/t0112-stats.sh +++ b/tests/t0112-stats.sh @@ -42,6 +42,12 @@ test_expect_success 'stats page renders the authors table' ' grep "<h2>Commits per author" tmp ' +# The table scrolls sideways on a narrow window with nothing in it a keyboard +# can reach, so the table itself takes focus. +test_expect_success 'the authors table can take keyboard focus' ' + grep "<table class=.stats. tabindex=.0. aria-label=.Commits per author.>" tmp +' + test_expect_success 'stat options sit above the content' ' tr -d "\n" <tmp | sed "s/<h2>Commits per author.*//" | grep "cgit-panel" ' |
