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
1 changed files with 1 additions and 2 deletions

View File

@ -67,11 +67,10 @@ public void TestPlaceWithMouseMovementOutsidePlayfield()
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);
}