From 47290d490e51db378e52f899827edf4fafb85202 Mon Sep 17 00:00:00 2001 From: Michael Hawker <24302614+michael-hawker@users.noreply.github.com> Date: Thu, 8 May 2025 11:30:01 -0700 Subject: [PATCH] Bring over initial test cases for Input Injector in order to be able to test Sizer controls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See: https://github.com/CommunityToolkit/Labs-Windows/pull/183 And Tooling Branch: https://github.com/CommunityToolkit/Tooling-Windows-Submodule/tree/llama/input-injection-2025 TODO: More fluent API surface and figuring out how to do a Drag operation instead of just Click... 😅 --- components/Sizers/src/SizerBase.xaml | 8 ++- .../Sizers/tests/SizerInputTestClass.cs | 60 +++++++++++++++++++ .../Sizers/tests/Sizers.Tests.projitems | 8 +++ .../Sizers/tests/TouchInjectionTest.xaml | 18 ++++++ .../Sizers/tests/TouchInjectionTest.xaml.cs | 25 ++++++++ tooling | 2 +- 6 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 components/Sizers/tests/SizerInputTestClass.cs create mode 100644 components/Sizers/tests/TouchInjectionTest.xaml create mode 100644 components/Sizers/tests/TouchInjectionTest.xaml.cs diff --git a/components/Sizers/src/SizerBase.xaml b/components/Sizers/src/SizerBase.xaml index fc306c7e..9f3711b9 100644 --- a/components/Sizers/src/SizerBase.xaml +++ b/components/Sizers/src/SizerBase.xaml @@ -1,4 +1,4 @@ - + @@ -46,7 +46,11 @@ 2 4 -