Skip to content

Conversation

@SergeySmirnov-Akvelon
Copy link
Contributor

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon commented Feb 8, 2021

Fixes #4409

Proposed changes

  • Added ComboBoxUiaTextProvider class to support TextPattern. Its logic is based on the TextBoxBaseUiaTextProvider, but we use the native control handle, which is responsible for editing
  • Added unit tests

Customer Impact

Before:
103057869-aeef3a00-45db-11eb-9abb-50cdc8a5429b

After:
4409-fixed

Regression?

Risk

  • Minimal

Test methodology

  • Unit tests
  • Manual testing
  • CTI team

Accessibility testing

  • Inspect
  • Narrator

Test environment(s)

  • Microsoft Windows [Version 10.0.19041.388]
  • .NET Core SDK 5.0.200-preview.20614.14
Microsoft Reviewers: Open in CodeFlow

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon requested a review from a team as a code owner February 8, 2021 13:50
@codecov
Copy link

codecov bot commented Feb 8, 2021

Codecov Report

Merging #4540 (ae34ee4) into main (55216f2) will increase coverage by 0.00461%.
The diff coverage is 99.60106%.

@@                 Coverage Diff                 @@
##                main       #4540         +/-   ##
===================================================
+ Coverage   97.97367%   97.97828%   +0.00460%     
===================================================
  Files            543         544          +1     
  Lines         264666      265418        +752     
  Branches        5007        5089         +82     
===================================================
+ Hits          259303      260052        +749     
  Misses          4483        4483                 
- Partials         880         883          +3     
Flag Coverage Δ
Debug 97.97828% <99.60106%> (+0.00460%) ⬆️
production ?
test 97.97828% <99.60106%> (+0.00460%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4409_adding_support_for_text_pattern_to_combobox branch from 462690e to 9a2fc76 Compare February 10, 2021 13:05
Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work. So many tests!
Main review point - return real hardcode values instead calculating

@RussKie RussKie added the waiting-author-feedback The team requires more information from the author label Feb 15, 2021
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Feb 15, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4409_adding_support_for_text_pattern_to_combobox branch from 9a2fc76 to a014d9c Compare February 15, 2021 13:50
RussKie
RussKie previously approved these changes Feb 16, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon added the waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) label Feb 16, 2021
Copy link
Contributor

@vladimir-krestov vladimir-krestov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4409_adding_support_for_text_pattern_to_combobox branch 4 times, most recently from 61984b3 to ba1b95f Compare March 10, 2021 12:51
@SergeySmirnov-Akvelon
Copy link
Contributor Author

CTI approved

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon added waiting-review This item is waiting on review by one or more members of team and removed waiting-for-testing The PR is awaiting manual testing by the primary team; no action is yet required from the author(s) labels Mar 11, 2021
@RussKie
Copy link
Contributor

RussKie commented Mar 16, 2021

MC

RussKie
RussKie previously approved these changes Mar 16, 2021
@RussKie RussKie added waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels Mar 16, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4409_adding_support_for_text_pattern_to_combobox branch from ba1b95f to 0bb8d75 Compare March 17, 2021 07:13
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Mar 17, 2021
@SergeySmirnov-Akvelon
Copy link
Contributor Author

MC are fixed :)

Comment on lines +1934 to +1937
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's a correlation between _childEdit and ChildEditAccessibleObject?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During the creation of the Handle for the ComboBox, we create a _childEdit. _childEdit is used when creating a ChildEditAccessibleObject. Thus, if _childEdit exists, we can be sure that the ChildEditAccessibleObject exists or can be created.

@RussKie RussKie added the waiting-author-feedback The team requires more information from the author label Mar 18, 2021
@ghost ghost removed the waiting-author-feedback The team requires more information from the author label Mar 18, 2021
…pDown, Simple) should support ValuePattern and TextPattern dotnet#4409

Added ComboBoxUiaTextProvider class to support TextPattern. Its logic is based on the TextBoxBaseUiaTextProvider, but we use the native control handle, which is responsible for editing

Changed the value of the "nativeDebugging" flag to "false", because the text pattern works incorrectly without this in the "WinFormTests" project

Added unit tests
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon force-pushed the Issue-4409_adding_support_for_text_pattern_to_combobox branch from 0bb8d75 to ae34ee4 Compare March 18, 2021 07:48
[InlineData(ComboBoxStyle.Simple)]
public void ComboBoxUiaTextProvider_Ctor_DoesntCreateControlHandle(ComboBoxStyle dropDownStyle)
{
using (new NoAssertContext())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most cases you can do this:

Suggested change
using (new NoAssertContext())
using NoAssertContext context = new();

It the same, just less braces and indentation.

@RussKie RussKie merged commit 13d19eb into dotnet:main Mar 22, 2021
@RussKie RussKie deleted the Issue-4409_adding_support_for_text_pattern_to_combobox branch March 22, 2021 01:42
@ghost ghost added this to the 6.0 Preview3 milestone Mar 22, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Accessibility] The 'Edit' element in ComboBox with DropDownStyle(DropDown, Simple) should support ValuePattern and TextPattern

3 participants