From 094ecbe31a4109e53e2f13b90ad331513e241885 Mon Sep 17 00:00:00 2001 From: beervoley Date: Mon, 22 Mar 2021 01:09:45 -0700 Subject: [PATCH 1/8] add button orientation size change --- .../InteractionTests/PipsPagerTests.cs | 47 ++++++++ dev/PipsPager/PipsPager.cpp | 113 ++++++++++++++---- dev/PipsPager/PipsPager.h | 5 +- dev/PipsPager/PipsPager.xaml | 15 ++- .../PipsPagerSelectedIndexChangedEventArgs.h | 13 +- dev/PipsPager/PipsPager_themeresources.xaml | 25 +++- dev/PipsPager/TestUI/PipsPagerPage.xaml | 45 ++++++- dev/PipsPager/TestUI/PipsPagerPage.xaml.cs | 20 +++- 8 files changed, 233 insertions(+), 50 deletions(-) mode change 100644 => 100755 dev/PipsPager/PipsPager_themeresources.xaml diff --git a/dev/PipsPager/InteractionTests/PipsPagerTests.cs b/dev/PipsPager/InteractionTests/PipsPagerTests.cs index 91779db175..da5bf2f95f 100755 --- a/dev/PipsPager/InteractionTests/PipsPagerTests.cs +++ b/dev/PipsPager/InteractionTests/PipsPagerTests.cs @@ -4,6 +4,7 @@ using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Infra; using Windows.UI.Xaml.Tests.MUXControls.InteractionTests.Common; using Common; +using Microsoft.Windows.Apps.Test.Foundation.Controls; #if USING_TAEF using WEX.TestExecution; using WEX.TestExecution.Markup; @@ -315,5 +316,51 @@ public void KeyboardPageSelectTest() VerifySelectedPageIndex(2); } } + [TestMethod] + [TestProperty("TestSuite", "F")] + public void PipSizeWithDifferentOrientationsTest() + { + using (var setup = new TestSetupHelper("PipsPager Tests")) + { + Button getButtonSizesButton = FindElement.ByName