Skip to content

Added UIA support for split container#6519

Merged
dreddy-work merged 1 commit intodotnet:mainfrom
Danil-Andrianov:Issue-3421_AddingUIASupportForSplitContainer
Feb 18, 2022
Merged

Added UIA support for split container#6519
dreddy-work merged 1 commit intodotnet:mainfrom
Danil-Andrianov:Issue-3421_AddingUIASupportForSplitContainer

Conversation

@Danil-Andrianov
Copy link
Contributor

@Danil-Andrianov Danil-Andrianov commented Jan 19, 2022

Partially implements #3421

Proposed changes

  • Updated "SupportsUiaProviders" flag.
  • Added and implemented splitContainer accessible object
  • Added unit tests

Customer Impact

Before update:

InspectPropertiesWithoutUIA

AIPropertiesWithoutUIA

After update:

InspectPropertiesWithUIA

AIPropertiesWithUIA

Regression?

  • No

Risk

  • Minimal

Test methodology

  • CTI team

Accessibility testing

  • Narrator
  • Inspect
  • Accessibility Insights

Test environment(s)

  • Microsoft Windows [Version 10.0.22000.318]
  • .NET Core SDK: 7.0.0-alpha.1.21562.1
Microsoft Reviewers: Open in CodeFlow

@JeremyKuhne
Copy link
Member

@Danil-Andrianov I'm having a hard time seeing what is different between the screenshots.

@Danil-Andrianov
Copy link
Contributor Author

@JeremyKuhne the difference is just in provider, please, check screenshots from Inspect. AI data are same in both cases.

@Danil-Andrianov Danil-Andrianov force-pushed the Issue-3421_AddingUIASupportForSplitContainer branch 2 times, most recently from a39942f to 1395ee6 Compare January 28, 2022 11:50
RussKie
RussKie previously approved these changes Jan 28, 2022
dreddy-work
dreddy-work previously approved these changes Feb 1, 2022
Copy link
Contributor

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon 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 if it works

@Tanya-Solyanik Tanya-Solyanik 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 11, 2022
@Tanya-Solyanik
Copy link
Contributor

@Olina-Zhang - could you please test this change?

@Danil-Andrianov Danil-Andrianov force-pushed the Issue-3421_AddingUIASupportForSplitContainer branch from 1395ee6 to 1432f21 Compare February 11, 2022 16:06
@Olina-Zhang
Copy link
Member

Tested this PR for splitContainer control in Accessibility tools, it supports UIA provider and no issue was found finally.

@Olina-Zhang Olina-Zhang removed 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 15, 2022
@dreddy-work
Copy link
Member

@Danil-Andrianov , can you please rebase this?

@Danil-Andrianov Danil-Andrianov force-pushed the Issue-3421_AddingUIASupportForSplitContainer branch from 1432f21 to 58bf120 Compare February 16, 2022 05:37
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 ✔️


namespace System.Windows.Forms.Tests
{
public class SplitContainer_SplitContainerAccessibilityObjectTests : IClassFixture<ThreadExceptionFixture>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public class SplitContainer_SplitContainerAccessibilityObjectTests : IClassFixture<ThreadExceptionFixture>
public class SplitContainer_SplitContainerAccessibleObjectTests : IClassFixture<ThreadExceptionFixture>

@@ -26,9 +26,9 @@ public void SplitContainerAccessibilityObject_ControlType_IsPane_IfAccessibleRol
splitContainer.CreateControl();
Copy link
Contributor

Choose a reason for hiding this comment

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

Change "Accessible" in the test name as well

Comment on lines +82 to +88
using var control = new SplitContainer
{
Name = "SplitContainer1",
AccessibleName = "TestName"
};

var accessibleObject = new SplitContainer.SplitContainerAccessibleObject(control);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use one style for all tests, as you did before:

Suggested change
using var control = new SplitContainer
{
Name = "SplitContainer1",
AccessibleName = "TestName"
};
var accessibleObject = new SplitContainer.SplitContainerAccessibleObject(control);
using SplitContainer control = new()
{
Name = "SplitContainer1",
AccessibleName = "TestName"
};
SplitContainer.SplitContainerAccessibleObject accessibleObject = new(control);

@Danil-Andrianov Danil-Andrianov force-pushed the Issue-3421_AddingUIASupportForSplitContainer branch from 149a66d to ad985bc Compare February 18, 2022 09:42
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

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

Thank you, looks good!

@dreddy-work dreddy-work merged commit 8494813 into dotnet:main Feb 18, 2022
@RussKie RussKie added this to the 7.0 Preview3 milestone Feb 22, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 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.

8 participants