Skip to content

Commit b45e6d2

Browse files
Adjust comparer for NET 472 x86
1 parent 94e2ae2 commit b45e6d2

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/ImageSharp.Drawing.Tests/Drawing/Text/DrawTextOnImageTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,17 @@ public void CanDrawTextAlongPathHorizontal<TPixel>(TestImageProvider<TPixel> pro
701701
const string text = "Quick brown fox jumps over the lazy dog.";
702702
IPathCollection glyphs = TextBuilder.GenerateGlyphs(text, path, textOptions);
703703

704+
#if NET472
705+
provider.RunValidatingProcessorTest(
706+
c => c.Fill(Color.White).Draw(Color.Red, 1, path).Fill(Color.Black, glyphs),
707+
new { type = exampleImageKey },
708+
comparer: ImageComparer.TolerantPercentage(0.017f));
709+
#else
704710
provider.RunValidatingProcessorTest(
705711
c => c.Fill(Color.White).Draw(Color.Red, 1, path).Fill(Color.Black, glyphs),
706712
new { type = exampleImageKey },
707713
comparer: ImageComparer.TolerantPercentage(0.0025f));
714+
#endif
708715
}
709716

710717
[Theory]

0 commit comments

Comments
 (0)