mirror of https://github.com/ppy/osu
Fix test to work regardless of screen sizes
This commit is contained in:
parent
d12845d7b1
commit
547f247669
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue