Browse Source

Skip TextLayout render tests on OSX.

They were failing due to slightly different text rendering on that platform.
pull/6256/head
Steven Kirk 5 years ago
parent
commit
9718a77fa9
  1. 9
      tests/Avalonia.RenderTests/Media/TextFormatting/TextLayoutTests.cs

9
tests/Avalonia.RenderTests/Media/TextFormatting/TextLayoutTests.cs

@ -10,6 +10,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using System.Runtime.InteropServices;
#if AVALONIA_SKIA
namespace Avalonia.Skia.RenderTests
@ -30,6 +31,10 @@ namespace Avalonia.Direct2D1.RenderTests.Media
[Fact]
public async Task TextLayout_Basic()
{
// Skip test on OSX: text rendering is subtly different.
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
return;
var t = new TextLayout(
"Avalonia!",
new Typeface(TestFontFamily),
@ -58,6 +63,10 @@ namespace Avalonia.Direct2D1.RenderTests.Media
[Fact]
public async Task TextLayout_Rotated()
{
// Skip test on OSX: text rendering is subtly different.
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
return;
var t = new TextLayout(
"Avalonia!",
new Typeface(TestFontFamily),

Loading…
Cancel
Save