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());
|
AddStep("get playfield", () => playfield = Editor.ChildrenOfType<OsuPlayfield>().First());
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[TestCase(true)]
|
||||||
public void TestHitCircleSnapsToOtherHitCircle()
|
[TestCase(false)]
|
||||||
|
public void TestHitCircleSnapsToOtherHitCircle(bool distanceSnapEnabled)
|
||||||
{
|
{
|
||||||
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(playfield.ScreenSpaceDrawQuad.Centre));
|
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(playfield.ScreenSpaceDrawQuad.Centre));
|
||||||
|
|
||||||
AddStep("disable distance snap", () =>
|
if (!distanceSnapEnabled)
|
||||||
{
|
{
|
||||||
InputManager.PressKey(Key.Q);
|
AddStep("disable distance snap", () =>
|
||||||
InputManager.ReleaseKey(Key.Q);
|
{
|
||||||
});
|
InputManager.PressKey(Key.Q);
|
||||||
|
InputManager.ReleaseKey(Key.Q);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
AddStep("enter placement mode", () =>
|
AddStep("enter placement mode", () =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue