Allow skip button to actuate more than once

This commit is contained in:
Dean Herbert
2019-11-21 15:19:06 +09:00
parent c0b9bb5a12
commit 8369be90f2
4 changed files with 29 additions and 32 deletions

View File

@ -33,7 +33,7 @@ namespace osu.Game.Tests.Visual.Gameplay
{
skip = new SkipOverlay(6000)
{
RequestSeek = _ => requestCount++
RequestSkip = () => requestCount++
}
},
};
@ -60,17 +60,6 @@ namespace osu.Game.Tests.Visual.Gameplay
checkRequestCount(1);
}
[Test]
public void TestClickOnlyActuatesOnce()
{
AddStep("move mouse", () => InputManager.MoveMouseTo(skip.ScreenSpaceDrawQuad.Centre));
AddStep("click", () => InputManager.Click(MouseButton.Left));
AddStep("click", () => InputManager.Click(MouseButton.Left));
AddStep("click", () => InputManager.Click(MouseButton.Left));
AddStep("click", () => InputManager.Click(MouseButton.Left));
checkRequestCount(1);
}
[Test]
public void TestDoesntFadeOnMouseDown()
{