mirror of
https://github.com/ppy/osu
synced 2025-01-10 08:09:40 +00:00
Fix tests
This commit is contained in:
parent
49ee05c3c4
commit
2fd25f5ee6
@ -105,7 +105,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
AddStep("move mouse", () => InputManager.MoveMouseTo(skip.ScreenSpaceDrawQuad.Centre));
|
AddStep("move mouse", () => InputManager.MoveMouseTo(skip.ScreenSpaceDrawQuad.Centre));
|
||||||
AddStep("button down", () => InputManager.PressButton(MouseButton.Left));
|
AddStep("button down", () => InputManager.PressButton(MouseButton.Left));
|
||||||
AddUntilStep("wait for overlay disappear", () => !skip.Child.IsPresent);
|
AddUntilStep("wait for overlay disappear", () => !skip.OverlayContents.IsPresent);
|
||||||
AddAssert("ensure button didn't disappear", () => skip.OverlayContents.Alpha > 0);
|
AddAssert("ensure button didn't disappear", () => skip.OverlayContents.Alpha > 0);
|
||||||
AddStep("button up", () => InputManager.ReleaseButton(MouseButton.Left));
|
AddStep("button up", () => InputManager.ReleaseButton(MouseButton.Left));
|
||||||
checkRequestCount(0);
|
checkRequestCount(0);
|
||||||
@ -121,7 +121,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public Drawable OverlayContents => (Child as Container)?.Child;
|
public Drawable OverlayContents => (InternalChild as Container)?.Child;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user