Browse Source
Merge pull request #4220 from AvaloniaUI/fixes/datepicker-flaky-test
Fix flaky DatePickerTests.
pull/4221/head
Jumar Macato
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
7 additions and
4 deletions
-
tests/Avalonia.Controls.UnitTests/DatePickerTests.cs
-
tests/Avalonia.Controls.UnitTests/TimePickerTests.cs
|
|
|
@ -203,7 +203,9 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
} |
|
|
|
|
|
|
|
private static TestServices Services => TestServices.MockThreadingInterface.With( |
|
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>()); |
|
|
|
fontManagerImpl: new MockFontManagerImpl(), |
|
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>(), |
|
|
|
textShaperImpl: new MockTextShaperImpl()); |
|
|
|
|
|
|
|
private IControlTemplate CreateTemplate() |
|
|
|
{ |
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
{ |
|
|
|
public class TimePickerTests |
|
|
|
{ |
|
|
|
[Fact(Skip = "FIX ME ASAP")] |
|
|
|
[Fact] |
|
|
|
public void SelectedTimeChanged_Should_Fire_When_SelectedTime_Set() |
|
|
|
{ |
|
|
|
using (UnitTestApplication.Start(Services)) |
|
|
|
@ -98,9 +98,10 @@ namespace Avalonia.Controls.UnitTests |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static TestServices Services => TestServices.MockThreadingInterface.With( |
|
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>()); |
|
|
|
fontManagerImpl: new MockFontManagerImpl(), |
|
|
|
standardCursorFactory: Mock.Of<IStandardCursorFactory>(), |
|
|
|
textShaperImpl: new MockTextShaperImpl()); |
|
|
|
|
|
|
|
private IControlTemplate CreateTemplate() |
|
|
|
{ |
|
|
|
|