Skip to content

Commit 275f0ec

Browse files
committed
Update VisualBrushTests
1 parent 3b5a02b commit 275f0ec

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

tests/Avalonia.RenderTests/Media/VisualBrushTests.cs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ namespace Avalonia.Direct2D1.RenderTests.Media
1414
{
1515
public class VisualBrushTests : TestBase
1616
{
17-
//Whitespaces are used here to be able to compare rendering results in a platform independent way.
18-
//Otherwise tests will fail because of slightly different glyph rendering.
19-
private static readonly string s_visualBrushText = " ";
20-
2117
public VisualBrushTests()
2218
: base(@"Media\VisualBrush")
2319
{
@@ -46,13 +42,11 @@ private Control Visual
4642
BorderThickness = new Thickness(2),
4743
HorizontalAlignment = HorizontalAlignment.Center,
4844
VerticalAlignment = VerticalAlignment.Center,
49-
Child = new TextBlock
45+
Child = new Panel
5046
{
51-
FontSize = 24,
52-
FontFamily = TestFontFamily,
53-
Background = Brushes.Green,
54-
Foreground = Brushes.Yellow,
55-
Text = s_visualBrushText
47+
Height = 26,
48+
Width = 150,
49+
Background = Brushes.Green
5650
}
5751
}
5852
}
@@ -392,10 +386,10 @@ public async Task VisualBrush_InTree_Visual()
392386
{
393387
Background = Brushes.Yellow,
394388
HorizontalAlignment = HorizontalAlignment.Left,
395-
Child = new TextBlock
389+
Child = new Panel
396390
{
397-
FontFamily = TestFontFamily,
398-
Text = s_visualBrushText
391+
Height = 10,
392+
Width = 50
399393
}
400394
}),
401395
new Border

0 commit comments

Comments
 (0)