|
|
|
@ -96,5 +96,29 @@ namespace Perspex.Direct2D1.RenderTests.Controls |
|
|
|
this.RenderToFile(target); |
|
|
|
this.CompareImages(); |
|
|
|
} |
|
|
|
|
|
|
|
[TestMethod] |
|
|
|
public void Border_Padding_Offsets_Content() |
|
|
|
{ |
|
|
|
Decorator target = new Decorator |
|
|
|
{ |
|
|
|
Padding = new Thickness(8), |
|
|
|
Width = 200, |
|
|
|
Height = 200, |
|
|
|
Content = new Border |
|
|
|
{ |
|
|
|
BorderBrush = Brushes.Black, |
|
|
|
BorderThickness = 2, |
|
|
|
Padding = new Thickness(2), |
|
|
|
Content = new Border |
|
|
|
{ |
|
|
|
Background = Brushes.Red, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
this.RenderToFile(target); |
|
|
|
this.CompareImages(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|