From c180191ef146fcc2cb39d68e119236c2f6633420 Mon Sep 17 00:00:00 2001 From: Jumar Macato Date: Tue, 18 Jun 2019 20:51:26 +0800 Subject: [PATCH] Make sure there's only one instance of Animator spawned per property target key. Add unit test for this. --- samples/RenderDemo/Pages/AnimationsPage.xaml | 2 +- src/Avalonia.Animation/Animation.cs | 15 ++- src/Avalonia.Animation/AnimationTarget.cs | 31 ++++-- .../Animators/SolidColorBrushAnimator.cs | 13 ++- .../AnimationGeneralTests.cs | 94 +++++++++++++++++++ 5 files changed, 139 insertions(+), 16 deletions(-) create mode 100644 tests/Avalonia.Animation.UnitTests/AnimationGeneralTests.cs diff --git a/samples/RenderDemo/Pages/AnimationsPage.xaml b/samples/RenderDemo/Pages/AnimationsPage.xaml index 19ece3bfe3..33ac62e20d 100644 --- a/samples/RenderDemo/Pages/AnimationsPage.xaml +++ b/samples/RenderDemo/Pages/AnimationsPage.xaml @@ -105,7 +105,7 @@ -