mirror of
https://github.com/ppy/osu
synced 2024-12-11 17:42:28 +00:00
Update distance snap test when cursor at centre of grid to be in line with expectations
This commit is contained in:
parent
effc92475b
commit
fda61943b0
@ -113,7 +113,14 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
public void TestCursorInCentre()
|
public void TestCursorInCentre()
|
||||||
{
|
{
|
||||||
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position)));
|
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position)));
|
||||||
assertSnappedDistance(0);
|
assertSnappedDistance(beat_length);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestCursorAlmostInCentre()
|
||||||
|
{
|
||||||
|
AddStep("move mouse to almost centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position) + new Vector2(1)));
|
||||||
|
assertSnappedDistance(beat_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user