Browse Source

add failing test for #4806 (skip it for now as it's deadlock)

pull/4807/head
Andrey Kunchev 6 years ago
parent
commit
07b48075ce
  1. 18
      tests/Avalonia.Skia.UnitTests/Media/TextFormatting/TextLayoutTests.cs

18
tests/Avalonia.Skia.UnitTests/Media/TextFormatting/TextLayoutTests.cs

@ -575,6 +575,24 @@ namespace Avalonia.Skia.UnitTests.Media.TextFormatting
}
}
[Fact(Skip = "Infinity loop issue #4806")]
public void Should_Wrap_Min_OneCharacter_EveryLine()
{
using (Start())
{
var layout = new TextLayout(
s_singleLineText,
Typeface.Default,
12,
Brushes.Black,
textWrapping: TextWrapping.Wrap,
maxWidth: 3);
//every character should be new line as there not enough space for even one character
Assert.Equal(s_singleLineText.Length, layout.TextLines.Count);
}
}
private static IDisposable Start()
{
var disposable = UnitTestApplication.Start(TestServices.MockPlatformRenderInterface

Loading…
Cancel
Save