New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing formatting information in MS Excel cells (strikethrough, superscript/subscript) #12264
Conversation
…superscript/subscript)
See test results for failed build of commit 3ea39bcef6 |
The failing test is Robot.chromeTests.ARIA treegrid |
See test results for failed build of commit ac7c06ef12 |
Oh, I have closed this PR by mistake and then re-opened it. This seems to trigger a new AppVeyor build. Good to know... Now, another system test is failing: Robot.chromeTests.i7562. |
See test results for failed build of commit ccae80cdb0 |
See test results for failed build of commit 23be5e7cbe |
bcd5f7b
to
b1a5026
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @CyrilleB79 for this, and for your patience dealing with our randomly failing system tests.
Here's the excel file I used to test with
test-12264.xlsx
Link to issue number:
None
Summary of the issue:
Some formatting information is not reported when navigating from one cell to another in Excel, although the corresponding category is checked in Document formatting settings.
Description of how this pull request fixes the issue:
_getFormatFieldAndOffsets
reportFocus
, speak the format field sequence not only if the current cell has format field info to speak but also if the previous cell has it. This is done to report 'baseline' when transitioning from a cell with superscript to a cell without formatting since 'baseline', being the default, is not stored in the cell's format fields.Note
This PR allows to have strikethrough and superscript/subscript reported if the whole cell is formatted with these attributes.
If having a whole cell formatted as superscript or subscript is probably not a real-life use case, strikethrough may be quite common.
Testing strategy:
Manual test:
No specific unit or system test for this PR.
Known issues with pull request:
This PR does not address the following points that are still issues with NVDA:
Change log entry:
Section: Bug fixes
Strikethrough, superscript and subscript are now reported when navigating through Excel cells if the corresponding option is enabled (#12264)
Code Review Checklist:
This checklist is a reminder of things commonly forgotten in a new PR.
Authors, please do a self-review and confirm you have considered the following items.
Mark items you have considered by checking them.
You can do this when editing the Pull request description with an x:
[ ]
becomes[x]
.You can also check the checkboxes after the PR is created.