mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Do less import work in [SetUp] step
This commit is contained in:
@ -74,21 +74,17 @@ namespace osu.Game.Tests.Visual
|
|||||||
Dependencies.Cache(manager = new BeatmapManager(LocalStorage, factory, rulesets, null, null, host, Beatmap.Default));
|
Dependencies.Cache(manager = new BeatmapManager(LocalStorage, factory, rulesets, null, null, host, Beatmap.Default));
|
||||||
Dependencies.Cache(new OsuConfigManager(LocalStorage));
|
Dependencies.Cache(new OsuConfigManager(LocalStorage));
|
||||||
|
|
||||||
|
manager.Import(TestResources.GetTestBeatmapForImport());
|
||||||
|
|
||||||
Beatmap.SetDefault();
|
Beatmap.SetDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public virtual void SetUp()
|
public virtual void SetUp() => Schedule(() =>
|
||||||
{
|
{
|
||||||
Schedule(() =>
|
Child = screenStackContainer = new ScreenStackCacheContainer { RelativeSizeAxes = Axes.Both };
|
||||||
{
|
screenStackContainer.ScreenStack.Push(songSelect = new DummySongSelect());
|
||||||
manager.Delete(manager.GetAllUsableBeatmapSets());
|
});
|
||||||
var temp = TestResources.GetTestBeatmapForImport();
|
|
||||||
manager.Import(temp);
|
|
||||||
Child = screenStackContainer = new ScreenStackCacheContainer { RelativeSizeAxes = Axes.Both };
|
|
||||||
screenStackContainer.ScreenStack.Push(songSelect = new DummySongSelect());
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check if <see cref="PlayerLoader"/> properly triggers the visual settings preview when a user hovers over the visual settings panel.
|
/// Check if <see cref="PlayerLoader"/> properly triggers the visual settings preview when a user hovers over the visual settings panel.
|
||||||
|
Reference in New Issue
Block a user