mirror of https://github.com/ppy/osu
Also test with distance snap enabled for sanity
This commit is contained in:
parent
89ded2903c
commit
ead6479442
|
@ -27,16 +27,20 @@ public override void SetUpSteps()
|
|||
AddStep("get playfield", () => playfield = Editor.ChildrenOfType<OsuPlayfield>().First());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestHitCircleSnapsToOtherHitCircle()
|
||||
[TestCase(true)]
|
||||
[TestCase(false)]
|
||||
public void TestHitCircleSnapsToOtherHitCircle(bool distanceSnapEnabled)
|
||||
{
|
||||
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(playfield.ScreenSpaceDrawQuad.Centre));
|
||||
|
||||
AddStep("disable distance snap", () =>
|
||||
if (!distanceSnapEnabled)
|
||||
{
|
||||
InputManager.PressKey(Key.Q);
|
||||
InputManager.ReleaseKey(Key.Q);
|
||||
});
|
||||
AddStep("disable distance snap", () =>
|
||||
{
|
||||
InputManager.PressKey(Key.Q);
|
||||
InputManager.ReleaseKey(Key.Q);
|
||||
});
|
||||
}
|
||||
|
||||
AddStep("enter placement mode", () =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue