vendor: import KillerPDF 1.7.5 source (GPL-3.0) as the base for MMD PDF

This commit is contained in:
2026-08-27 06:58:22 +02:00
commit 532485a830
577 changed files with 149058 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
using System.Windows;
using Xunit;
namespace KillerPDF.Tests
{
public class FlyoutPlacementTests
{
[Fact]
public void LeftRailUsesBottomLeftContentCorner()
{
var placement = FlyoutPlacement.PaneCorner(
new Size(244, 460), new Size(1200, 700), alignRight: false)[0];
Assert.Equal(new Point(-16, 260), placement.Point);
}
[Fact]
public void RightRailMirrorsFlyoutToBottomRightContentCorner()
{
var placement = FlyoutPlacement.PaneCorner(
new Size(244, 460), new Size(1200, 700), alignRight: true)[0];
Assert.Equal(new Point(972, 260), placement.Point);
}
[Fact]
public void TallFlyoutStaysBelowToolbarOnEitherSide()
{
var left = FlyoutPlacement.PaneCorner(
new Size(244, 800), new Size(1200, 700), alignRight: false)[0];
var right = FlyoutPlacement.PaneCorner(
new Size(244, 800), new Size(1200, 700), alignRight: true)[0];
Assert.Equal(0, left.Point.Y);
Assert.Equal(0, right.Point.Y);
}
}
}