mirror of
https://github.com/ppy/osu
synced 2025-01-27 16:22:57 +00: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));
|
||||
|
||||
private void createLoader()
|
||||
{
|
||||
AddStep("create loader", () =>
|
||||
=> AddStep("create loader", () =>
|
||||
{
|
||||
if (backgroundLoader != null)
|
||||
Remove(backgroundLoader);
|
||||
|
||||
LoadComponentAsync(backgroundLoader = new SeasonalBackgroundLoader(), Add);
|
||||
Add(backgroundLoader = new SeasonalBackgroundLoader());
|
||||
});
|
||||
|
||||
AddUntilStep("wait for loaded", () => backgroundLoader.IsLoaded);
|
||||
}
|
||||
|
||||
private void loadNextBackground()
|
||||
{
|
||||
SeasonalBackground background = null;
|
||||
|
Loading…
Reference in New Issue
Block a user