From 74aa5f296a40e206c7d0c54f3bf9e8de70d48285 Mon Sep 17 00:00:00 2001 From: Carl de Billy Date: Wed, 6 May 2020 15:57:06 -0400 Subject: [PATCH] "IsDeterminate" was misleading in the ProgressBarPage. (#2383) * "IsDeterminate" was misleading in the ProgressBarPage. * Fixed tests after PR review --- dev/ProgressBar/InteractionTests/ProgressBarTests.cs | 10 +++++----- dev/ProgressBar/TestUI/ProgressBarPage.xaml | 8 ++++---- dev/ProgressBar/TestUI/ProgressBarReTemplatePage.xaml | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dev/ProgressBar/InteractionTests/ProgressBarTests.cs b/dev/ProgressBar/InteractionTests/ProgressBarTests.cs index cc4977c91a..a6766a34e2 100644 --- a/dev/ProgressBar/InteractionTests/ProgressBarTests.cs +++ b/dev/ProgressBar/InteractionTests/ProgressBarTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; @@ -199,10 +199,10 @@ public void ChangeStateTest() ToggleButton showPausedCheckBox = FindElement.ByName("ShowPausedCheckBox"); ToggleButton showErrorCheckBox = FindElement.ByName("ShowErrorCheckBox"); - ToggleButton isIndeterminateCheckBox = FindElement.ByName("ShowIsDeterminateCheckBox"); + ToggleButton isIndeterminateCheckBox = FindElement.ByName("ShowIsIndeterminateCheckBox"); TextBlock showPausedText = FindElement.ByName("ShowPausedText"); TextBlock showErrorText = FindElement.ByName("ShowErrorText"); - TextBlock isIndeterminateText = FindElement.ByName("ShowIsDeterminateText"); + TextBlock isIndeterminateText = FindElement.ByName("ShowIsIndeterminateText"); TextBlock visualStateText = FindElement.ByName("VisualStateText"); Verify.IsFalse(Convert.ToBoolean(showPausedText.DocumentText)); @@ -374,10 +374,10 @@ public void ReTemplateChangeStateTest() ToggleButton showPausedCheckBox = FindElement.ByName("ShowPausedCheckBox"); ToggleButton showErrorCheckBox = FindElement.ByName("ShowErrorCheckBox"); - ToggleButton isIndeterminateCheckBox = FindElement.ByName("ShowIsDeterminateCheckBox"); + ToggleButton isIndeterminateCheckBox = FindElement.ByName("ShowIsIndeterminateCheckBox"); TextBlock showPausedText = FindElement.ByName("ShowPausedText"); TextBlock showErrorText = FindElement.ByName("ShowErrorText"); - TextBlock isIndeterminateText = FindElement.ByName("ShowIsDeterminateText"); + TextBlock isIndeterminateText = FindElement.ByName("ShowIsIndeterminateText"); TextBlock visualStateText = FindElement.ByName("VisualStateText"); Verify.IsFalse(Convert.ToBoolean(showPausedText.DocumentText)); diff --git a/dev/ProgressBar/TestUI/ProgressBarPage.xaml b/dev/ProgressBar/TestUI/ProgressBarPage.xaml index 175243ebb9..f6fddcc7ec 100644 --- a/dev/ProgressBar/TestUI/ProgressBarPage.xaml +++ b/dev/ProgressBar/TestUI/ProgressBarPage.xaml @@ -1,4 +1,4 @@ - + @@ -95,7 +95,7 @@ - + @@ -123,7 +123,7 @@ - + diff --git a/dev/ProgressBar/TestUI/ProgressBarReTemplatePage.xaml b/dev/ProgressBar/TestUI/ProgressBarReTemplatePage.xaml index 56611d3ef7..8fe623dd26 100644 --- a/dev/ProgressBar/TestUI/ProgressBarReTemplatePage.xaml +++ b/dev/ProgressBar/TestUI/ProgressBarReTemplatePage.xaml @@ -1,4 +1,4 @@ - @@ -372,7 +372,7 @@ - + @@ -400,7 +400,7 @@ - +