Skip to content

remove usages of controlTypes.stateLabels and negativeStateLabels#12821

Merged
seanbudd merged 1 commit into
masterfrom
remove-stateLabels
Sep 13, 2021
Merged

remove usages of controlTypes.stateLabels and negativeStateLabels#12821
seanbudd merged 1 commit into
masterfrom
remove-stateLabels

Conversation

@seanbudd

@seanbudd seanbudd commented Sep 9, 2021

Copy link
Copy Markdown
Member

Link to issue number:

Part of #12549

Summary of the issue:

controlTypes.stateLabels has been deprecated, usages such as controlTypes.stateLabels[controlTypes.State.*] should be replaced to their equivalent controlTypes.State.*.displayString

Description of how this pull request fixes the issue:

Use displayString and negativeDisplayString instead of stateLabels and negativeStateLabels.

Testing strategy:

Search the NVDA repo for "stateLabels" and "negativeStateLabels".

Unit tests exist in test_controlTypes.TestLabels (and have been renamed appropriately).

Known issues with pull request:

None

Change log entries:

None needed

Code Review Checklist:

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual testing.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers

@seanbudd seanbudd merged commit da36a66 into master Sep 13, 2021
@seanbudd seanbudd deleted the remove-stateLabels branch September 13, 2021 00:20
@nvaccessAuto nvaccessAuto added this to the 2021.3 milestone Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants