mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Simplify test case
This commit is contained in:
parent
a9a3489e92
commit
2065680e9d
@ -149,18 +149,14 @@ namespace osu.Game.Tests.Visual.Background
|
|||||||
=> AddStep($"set seasonal mode to {mode}", () => config.Set(OsuSetting.SeasonalBackgroundMode, mode));
|
=> AddStep($"set seasonal mode to {mode}", () => config.Set(OsuSetting.SeasonalBackgroundMode, mode));
|
||||||
|
|
||||||
private void createLoader()
|
private void createLoader()
|
||||||
{
|
=> AddStep("create loader", () =>
|
||||||
AddStep("create loader", () =>
|
|
||||||
{
|
{
|
||||||
if (backgroundLoader != null)
|
if (backgroundLoader != null)
|
||||||
Remove(backgroundLoader);
|
Remove(backgroundLoader);
|
||||||
|
|
||||||
LoadComponentAsync(backgroundLoader = new SeasonalBackgroundLoader(), Add);
|
Add(backgroundLoader = new SeasonalBackgroundLoader());
|
||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep("wait for loaded", () => backgroundLoader.IsLoaded);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void loadNextBackground()
|
private void loadNextBackground()
|
||||||
{
|
{
|
||||||
SeasonalBackground background = null;
|
SeasonalBackground background = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user