@@ -14,10 +14,6 @@ namespace Avalonia.Direct2D1.RenderTests.Media
14
14
{
15
15
public class VisualBrushTests : TestBase
16
16
{
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
-
21
17
public VisualBrushTests ( )
22
18
: base ( @"Media\VisualBrush" )
23
19
{
@@ -46,13 +42,11 @@ private Control Visual
46
42
BorderThickness = new Thickness ( 2 ) ,
47
43
HorizontalAlignment = HorizontalAlignment . Center ,
48
44
VerticalAlignment = VerticalAlignment . Center ,
49
- Child = new TextBlock
45
+ Child = new Panel
50
46
{
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
56
50
}
57
51
}
58
52
}
@@ -392,10 +386,10 @@ public async Task VisualBrush_InTree_Visual()
392
386
{
393
387
Background = Brushes . Yellow ,
394
388
HorizontalAlignment = HorizontalAlignment . Left ,
395
- Child = new TextBlock
389
+ Child = new Panel
396
390
{
397
- FontFamily = TestFontFamily ,
398
- Text = s_visualBrushText
391
+ Height = 10 ,
392
+ Width = 50
399
393
}
400
394
} ) ,
401
395
new Border
0 commit comments