mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Add missing wait step in TestScenePlayerLoader
This commit is contained in:
parent
8aac0ab0ce
commit
64de3840b0
@ -37,6 +37,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
public void TestBlockLoadViaMouseMovement()
|
||||
{
|
||||
AddStep("load dummy beatmap", () => stack.Push(loader = new TestPlayerLoader(() => new TestPlayer(false, false))));
|
||||
AddUntilStep("wait for current", () => loader.IsCurrentScreen());
|
||||
AddRepeatStep("move mouse", () => InputManager.MoveMouseTo(loader.VisualSettings.ScreenSpaceDrawQuad.TopLeft + (loader.VisualSettings.ScreenSpaceDrawQuad.BottomRight - loader.VisualSettings.ScreenSpaceDrawQuad.TopLeft) * RNG.NextSingle()), 20);
|
||||
AddAssert("loader still active", () => loader.IsCurrentScreen());
|
||||
AddUntilStep("loads after idle", () => !loader.IsCurrentScreen());
|
||||
|
Loading…
Reference in New Issue
Block a user