From bbd8acbf5040a1c8339eb690bbd85e40201cab91 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Fri, 15 Jun 2018 18:07:02 +0100 Subject: [PATCH] increase tolerance on tests --- tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs b/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs index 5440eb8db..8af374435 100644 --- a/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs +++ b/tests/ImageSharp.Tests/Drawing/Text/DrawTextOnImageTests.cs @@ -19,6 +19,7 @@ namespace SixLabors.ImageSharp.Tests.Drawing.Text using System.Text; using SixLabors.ImageSharp.Processing.Drawing.Brushes.GradientBrushes; using SixLabors.ImageSharp.Processing.Drawing.Pens; + using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison; using SixLabors.Primitives; [GroupOutput("Drawing/Text")] @@ -122,6 +123,7 @@ namespace SixLabors.ImageSharp.Tests.Drawing.Text TPixel color = NamedColors.Black; provider.VerifyOperation( + ImageComparer.Tolerant(perPixelManhattanThreshold: 16), img => { img.Mutate(c => c.DrawText(text, new Font(font, fontSize),null, Pens.Solid(color, 1), new PointF(x, y)));