Skip to content

Commit

Permalink
Reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DemeSzabolcs committed May 13, 2024
1 parent 8260889 commit b46c587
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;

namespace Lombiq.Tests.UI.Extensions;
Expand Down Expand Up @@ -54,7 +53,6 @@ public static void AssertVisualVerificationOnAllResolutions(
IEnumerable<Size> sizes,
Func<Size, By> getSelector,
double pixelErrorPercentageThreshold = 0,
bool checkOS = false,
Action<VisualVerificationMatchApprovedConfiguration> configurator = null)
{
context.HideScrollbar();
Expand All @@ -71,16 +69,7 @@ public static void AssertVisualVerificationOnAllResolutions(
pixelErrorPercentageThreshold: pixelErrorPercentageThreshold,
configurator: configuration =>
{
var fileNameSuffix = StringHelper.CreateInvariant($"{size.Width}x{size.Height}");

if (checkOS)
{
var oS = RuntimeInformation.OSDescription;

fileNameSuffix = $"{fileNameSuffix}-{oS}";
}

configuration.WithFileNameSuffix(fileNameSuffix);
configuration.WithFileNameSuffix(StringHelper.CreateInvariant($"{size.Width}x{size.Height}"));
configurator?.Invoke(configuration);
});
}
Expand Down

0 comments on commit b46c587

Please sign in to comment.