Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Read the file and diff tables as layout
The file view's table only sets the line numbers beside the code, and
the unified diff's is a single cell holding every file.
Diffstat (limited to 'tests/t0104-tree.sh')
| -rwxr-xr-x | tests/t0104-tree.sh | 6 |
1 file changed, 6 insertions, 0 deletions
diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh index 35b1948..21fc74b 100755 --- a/tests/t0104-tree.sh +++ b/tests/t0104-tree.sh @@ -25,6 +25,12 @@ test_expect_success 'no line 2' ' ! grep "<a id=.n2. href=.#n2.>2</a>" tmp ' +# The table only sets the numbers beside the code, so a screen reader is told +# to read it as layout rather than as a table of data. +test_expect_success 'the file table is read as layout' ' + grep "<table class=.blob. role=.presentation.>" tmp +' + # The numbers and the code are two columns of text that a browser keeps in # step only while both are set in one font. Only a browser shows the drift, # so this checks the rule that prevents it. |
