-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Refactoring] Added protection for MonthCalendarAccessibleObject #2975
[Refactoring] Added protection for MonthCalendarAccessibleObject #2975
Conversation
Hm, |
138805c
to
cbb6b23
Compare
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/DateTimePickerTests.cs
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #2975 +/- ##
====================================================
- Coverage 98.63134% 62.12888% -36.50246%
====================================================
Files 422 1292 +870
Lines 202096 456192 +254096
Branches 2814 39576 +36762
====================================================
+ Hits 199330 283427 +84097
- Misses 2218 167401 +165183
- Partials 548 5364 +4816
|
I have solved |
src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/DateTimePickerTests.cs
Outdated
Show resolved
Hide resolved
@RussKie, I'll start CTI testing when you approve. |
to get correct data from WinAPI messages Fixes Issue dotnet#2912 Related Issue dotnet#2475 Related PR dotnet#2975
4a2637d
to
87d2ce7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
e653f04
to
1b38364
Compare
Please prepare a patch for 3.1 as well. |
1b38364
to
4dca299
Compare
832b149
to
7c01e91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Do you feel that having created MauiMonthCalendarTests
we still need tests employing RemoteExecutor
?
....Forms/tests/UnitTests/AccessibleObjects/MonthCalendar.MonthCalendarAccessibleObjectTests.cs
Outdated
Show resolved
Hide resolved
...System.Windows.Forms/src/System/Windows/Forms/MonthCalendar.MonthCalendarAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/IntegrationTests/MauiTests/MauiTestsHelper/KeyBoardHelper.cs
Outdated
Show resolved
Hide resolved
...System.Windows.Forms/tests/IntegrationTests/MauiTests/MauiListViewTests/MauiListViewTests.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/IntegrationTests/MauiTests/MauiTestsHelper/MouseHelper.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/tests/IntegrationTests/WinformsControlsTest/Calendar.Designer.cs
Outdated
Show resolved
Hide resolved
1ea973f
to
a65123d
Compare
No, I have removed the unit tests. All test cases are implemented as maui tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Please rebase on the latest - the failing MAUI test was fixed by @M-Lipin. |
Cool, thank you! |
a65123d
to
60faf3d
Compare
Testers approved the fix ✔️ |
...dows.Forms/tests/IntegrationTests/MauiTests/MauiMonthCalendarTests/MauiMonthCalendarTests.cs
Show resolved
Hide resolved
...dows.Forms/tests/IntegrationTests/MauiTests/MauiMonthCalendarTests/MauiMonthCalendarTests.cs
Show resolved
Hide resolved
against incorrect parameters of methods to avoid exception throwing Related Issues dotnet#2912 and dotnet#2475 Related PR dotnet#2911
5182bb4
to
5b96cf9
Compare
5b96cf9
to
1635bc5
Compare
PR is ready, please check. |
Fixes #2475
Fixes #3034
Added protection for
MonthCalendarAccessibleObject
against incorrect parameters of methods to avoid exceptions throwingProposed changes
parentAccessibleObject
null condition forGetCalendarCell
method to avoidNullReferenceException
throwing when gettingrowIndex
value on 373 line (MonthCalendar.MonthCalendarAccessibleObject.cs
)SysTimeToDateTime
method to get correctDateTime
value (DateTimePicker.cs
)Customer Impact
Regression?
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow