mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Fix loader animation test case
This commit is contained in:
parent
6502e26d09
commit
d3920d652d
@ -23,7 +23,11 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
|
||||
public TestCaseLoaderAnimation()
|
||||
{
|
||||
Child = logo = new OsuLogo { Depth = float.MinValue };
|
||||
Child = logo = new OsuLogo
|
||||
{
|
||||
Alpha = 0,
|
||||
Depth = float.MinValue
|
||||
};
|
||||
}
|
||||
|
||||
[Test]
|
||||
@ -39,7 +43,7 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
LoadScreen(loader);
|
||||
});
|
||||
|
||||
AddAssert("loaded", () =>
|
||||
AddUntilStep("loaded", () =>
|
||||
{
|
||||
logoVisible = loader.Logo?.Alpha > 0;
|
||||
return loader.Logo != null && loader.ScreenLoaded;
|
||||
|
Loading…
Reference in New Issue
Block a user