Adding UIA support for PrintPreviewControl#6600
Conversation
c512d68 to
e7717b4
Compare
7ff876b to
1249f2e
Compare
| [WinFormsFact] | ||
| public void PrintPreviewControlAccessibleObject_GetPropertyValue_Focused_ReturnsExpected() | ||
| { | ||
| Form form = new(); |
dreddy-work
left a comment
There was a problem hiding this comment.
RLGTM. @Tanya-Solyanik , when you get a chance, can you take a final look here?
...ws.Forms/src/System/Windows/Forms/PrintPreviewControl.PrintPreviewControlAccessibleObject.cs
Show resolved
Hide resolved
| @@ -1,4 +1,4 @@ | |||
| <Project Sdk="Microsoft.NET.Sdk"> | |||
| <Project Sdk="Microsoft.NET.Sdk"> | |||
There was a problem hiding this comment.
This is noise, please revert
Tanya-Solyanik
left a comment
There was a problem hiding this comment.
Looks good, @Olina-Zhang - could you please test this change
20cb633
1249f2e to
20cb633
Compare
20cb633 to
cab44a4
Compare
|
new unrelated failure: |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
vladimir-krestov
left a comment
There was a problem hiding this comment.
Should be carefully tested
| using Form form = new(); | ||
| using var control = new PrintPreviewControl(); |
There was a problem hiding this comment.
Please use one style for your tests:
| using Form form = new(); | |
| using var control = new PrintPreviewControl(); | |
| using Form form = new(); | |
| using PrintPreviewControl control = new(); |
| using Form form = new(); | ||
| using var control = new PrintPreviewControl(); | ||
| form.Controls.Add(control); | ||
| form.Show(); |
There was a problem hiding this comment.
Please consider the ability to test this case without creating a form. Because this test is already UI test
There was a problem hiding this comment.
Unfortunately, in this case the focus can't be set without creating form.
There was a problem hiding this comment.
Doesn't FocusActiveControlInternal work? Or something like that:
User32.SetFocus(new HandleRef(_activeControl, _activeControl.Handle));? (don't forget to CreateControl before)
There was a problem hiding this comment.
The latter way works fine, thanks.
6a9a4c8 to
fcf25fa
Compare
Tanya-Solyanik
left a comment
There was a problem hiding this comment.
Looks good, but please make sure the @vladimir-krestov signs off, seems like his comments are addressed
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
bc563b7
fcf25fa to
bc563b7
Compare
|
Hi @Cassie-Li01, it looks like you just commented on a closed PR. The team will most probably miss it. |



Partially implements #3421
Proposed changes
Customer Impact
Before update:


After update:


Provider was changed.
Regression?
Risk
Test methodology
Accessibility testing
Test environment(s)
Microsoft Reviewers: Open in CodeFlow