1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Add test coverage of slider blueprint end placement failing outside playfield

This commit is contained in:
Dean Herbert 2023-07-11 17:29:28 +09:00
parent 99d4d2be37
commit ca9c31b492

View File

@ -61,6 +61,21 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
assertControlPointType(0, PathType.Linear);
}
[Test]
public void TestPlaceWithMouseMovementOutsidePlayfield()
{
addMovementStep(new Vector2(200));
addClickStep(MouseButton.Left);
addMovementStep(new Vector2(1400, 200));
addClickStep(MouseButton.Right);
assertPlaced(true);
assertLength(1200);
assertControlPointCount(2);
assertControlPointType(0, PathType.Linear);
}
[Test]
public void TestPlaceNormalControlPoint()
{