mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Add test
This commit is contained in:
@ -353,6 +353,22 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
AddUntilStep("sound volume restored", () => Beatmap.Value.Track.AggregateVolume.Value == 1);
|
AddUntilStep("sound volume restored", () => Beatmap.Value.Track.AggregateVolume.Value == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestQuickRetry()
|
||||||
|
{
|
||||||
|
AddStep("load dummy beatmap", () => resetPlayer(false));
|
||||||
|
AddUntilStep("wait for current", () => player.IsCurrentScreen());
|
||||||
|
|
||||||
|
AddStep("Restart map normally", () => player.Restart());
|
||||||
|
AddUntilStep("wait for current", () => player.IsCurrentScreen());
|
||||||
|
|
||||||
|
AddStep("Restart map with quick retry hotkey", () =>
|
||||||
|
{
|
||||||
|
InputManager.UseParentInput = true;
|
||||||
|
InputManager.PressKey(Key.Tilde);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private EpilepsyWarning getWarning() => loader.ChildrenOfType<EpilepsyWarning>().SingleOrDefault();
|
private EpilepsyWarning getWarning() => loader.ChildrenOfType<EpilepsyWarning>().SingleOrDefault();
|
||||||
|
|
||||||
private class TestPlayerLoader : PlayerLoader
|
private class TestPlayerLoader : PlayerLoader
|
||||||
|
Reference in New Issue
Block a user