nvda
17e52866 - Replace controlTypes.STATE_* with controlTypes.State.* (PR #12712)

Commit
4 years ago
Replace controlTypes.STATE_* with controlTypes.State.* (PR #12712) Part of #12549 # Summary: controlTypes.STATE_* are deprecated, to be replaced by controlTypes.State.* # Description of fix: Replaced all instances of controlTypes.STATE_ with controlTypes.State. across .py files Searched and manually replaced final STATE_ constant usages - using the regex: [^\.]\bSTATE_ - which finds STATE_ instances Because other usages of "STATE_" are common such as: - oleacc.STATE_*, the regex excludes the form <Foo>.STATE_ - IA2_STATE_*, the regex ensures STATE_ is the prefix of the symbol. # Testing: - Manually inspect regex results. - Existing unit tests exist for controlTypes - New unit tests are written for displayString and negativeDisplayString, checking the labels of enum members
Author
Parents
Loading