From 5ced1db770983239b5a80b2f51ecce2392f12776 Mon Sep 17 00:00:00 2001 From: danwalmsley Date: Thu, 10 Nov 2016 10:15:39 +0000 Subject: [PATCH] Removed hack for Skia render tests. --- .../Media/FormattedTextImplTests.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tests/Avalonia.RenderTests/Media/FormattedTextImplTests.cs b/tests/Avalonia.RenderTests/Media/FormattedTextImplTests.cs index 395e6f8fd8..813db56fed 100644 --- a/tests/Avalonia.RenderTests/Media/FormattedTextImplTests.cs +++ b/tests/Avalonia.RenderTests/Media/FormattedTextImplTests.cs @@ -101,20 +101,12 @@ namespace Avalonia.Direct2D1.RenderTests.Media [InlineData(stringmiddlenewlines, FontSize, 72.01, 4 * FontSizeHeight)] public void Should_Measure_String_Correctly(string input, double fontSize, double expWidth, double expHeight) { -#if !AVALONIA_SKIA - double heightCorr = 0; -#else - //In skia there is a small descent added to last line, - //otherwise some letters are clipped at bottom - //4.55273438 for font 12 size - double heightCorr = 0.3793945*fontSize; -#endif using (var fmt = Create(input, fontSize)) { var size = fmt.Measure(); Assert.Equal(expWidth, size.Width, 2); - Assert.Equal(expHeight + heightCorr, size.Height, 2); + Assert.Equal(expHeight, size.Height, 2); var linesHeight = fmt.GetLines().Sum(l => l.Height);