mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 22:22:59 +08:00
Add failing test case
This commit is contained in:
parent
ba21ad2b81
commit
945139635f
@ -18,6 +18,7 @@ using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using osu.Game.Overlays;
|
||||
using osu.Game.Overlays.Notifications;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
@ -207,7 +208,25 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestBlockLoadViaFocus()
|
||||
public void TestLoadNotBlockedViaArbitraryFocus()
|
||||
{
|
||||
AddStep("load dummy beatmap", () => resetPlayer(false));
|
||||
AddUntilStep("wait for current", () => loader.IsCurrentScreen());
|
||||
|
||||
AddUntilStep("click settings slider", () =>
|
||||
{
|
||||
InputManager.MoveMouseTo(loader.ChildrenOfType<OsuSliderBar<float>>().First());
|
||||
InputManager.Click(MouseButton.Left);
|
||||
|
||||
return InputManager.FocusedDrawable is OsuSliderBar<float>;
|
||||
});
|
||||
|
||||
AddUntilStep("wait for load ready", () => player?.LoadState == LoadState.Ready);
|
||||
AddUntilStep("loads", () => !loader.IsCurrentScreen());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestBlockLoadViaOverlayFocus()
|
||||
{
|
||||
AddStep("load dummy beatmap", () => resetPlayer(false));
|
||||
AddUntilStep("wait for current", () => loader.IsCurrentScreen());
|
||||
|
Loading…
Reference in New Issue
Block a user