1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:22:57 +08:00

Fix test to work regardless of screen sizes

This commit is contained in:
Dean Herbert 2023-07-12 17:41:58 +09:00
parent d12845d7b1
commit 547f247669

View File

@ -67,11 +67,10 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
addMovementStep(new Vector2(200));
addClickStep(MouseButton.Left);
addMovementStep(new Vector2(1400, 200));
AddStep("move mouse out of screen", () => InputManager.MoveMouseTo(InputManager.ScreenSpaceDrawQuad.TopRight + Vector2.One));
addClickStep(MouseButton.Right);
assertPlaced(true);
assertLength(1200);
assertControlPointCount(2);
assertControlPointType(0, PathType.Linear);
}