Add failing test for expected multiple path drag UX

This commit is contained in:
Bartłomiej Dach 2021-12-20 21:01:11 +01:00
parent b0ca82e1e5
commit fbba8293c7
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 28 additions and 0 deletions

View File

@ -60,6 +60,34 @@ public void TestDragControlPoint()
assertControlPointType(0, PathType.PerfectCurve);
}
[Test]
public void TestDragMultipleControlPoints()
{
moveMouseToControlPoint(2);
AddStep("click", () => InputManager.Click(MouseButton.Left));
AddStep("hold control", () => InputManager.PressKey(Key.LControl));
moveMouseToControlPoint(3);
AddStep("click", () => InputManager.Click(MouseButton.Left));
moveMouseToControlPoint(4);
AddStep("click", () => InputManager.Click(MouseButton.Left));
moveMouseToControlPoint(2);
addMovementStep(new Vector2(450, 50));
AddStep("release", () => InputManager.ReleaseButton(MouseButton.Left));
assertControlPointPosition(2, new Vector2(450, 50));
assertControlPointType(2, PathType.PerfectCurve);
assertControlPointPosition(3, new Vector2(550, 50));
assertControlPointPosition(4, new Vector2(550, 200));
AddStep("release control", () => InputManager.ReleaseKey(Key.LControl));
}
[Test]
public void TestDragControlPointAlmostLinearlyExterior()
{