Fixing broken hierarchy for items list in Combobox#4185
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4185 +/- ##
===================================================
- Coverage 98.12475% 97.96137% -0.16339%
===================================================
Files 494 503 +9
Lines 258472 259292 +820
Branches 4489 4615 +126
===================================================
+ Hits 253625 254006 +381
- Misses 4089 4473 +384
- Partials 758 813 +55
Flags with carried forward coverage won't be shown. Click here to find out more. |
f1412cc to
48f1192
Compare
… inspect tree when setting its DropDownStyle as DropDown or DropDownList. dotnet#3654 Issue is reproduced because ComboBoxChildListUiaProvider has no parent. Also "FragmentNavigate" method does not work clearly and sometimes we got an incorrect result. - Updated logic of "FragmentNavigate" method for Combobox accessible objects. Updated logic for ComboBox.ComboBoxChildNativeWindow. Now we return our ComboBoxChildEditUiaProvider instead of the native. - Fixed unit tests
48f1192 to
0f260e2
Compare
|
CTI approved |
There was a problem hiding this comment.
Looks good. I added some nits.
- Please clarify, why we are not testing if Handle was created everywhere before creating providers or accessible object?
- And please add more details about what controls were tested manually - toolstrip combo item, DGV combo column? Had you tested all combo boxes from the test app? Particularly the data-bound one? Is MSAA still good?
@vladimir-krestov - Had you reviewed this change?
...em.Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ChildAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxAccessibleObject.cs
Outdated
Show resolved
Hide resolved
...em.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs
Show resolved
Hide resolved
vladimir-krestov
left a comment
There was a problem hiding this comment.
Good work! Added cosmetic review points
...em.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxChildEditUiaProvider.cs
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxChildListUiaProvider.cs
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ComboBox.ComboBoxChildNativeWindow.cs
Outdated
Show resolved
Hide resolved
...Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
...Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
...Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
...Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
|
Hi @Tanya-Solyanik. I verified manually ToolStripCombobox, DataGridViewComboBoxColumn and comboboxes from the test application including the data-bound combobox. We found no change in MSAA behavior because MSAA uses native controls and does not call the "FragmentNavigate" method. During the refactoring, we have made a lot of new changes, so I suggest to send a fix to CTI team once again after fixing review notes |
...ws.Forms/tests/UnitTests/System/Windows/Forms/ComboBox .ComboBoxChildListUiaProviderTests.cs
Outdated
Show resolved
Hide resolved
...Windows.Forms/tests/UnitTests/System/Windows/Forms/ComboBox.ComboBoxAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
b089a0f to
d550bb9
Compare
Fixes #3654
Proposed changes
Customer Impact
Before:


After:
Regression?
Risk
Test methodology
Accessibility testing
Test environment(s)
Microsoft Reviewers: Open in CodeFlow