mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Derive ScreenTestCase + use LoadComponentAsync
This commit is contained in:
parent
0c705b0397
commit
e97349fd63
@ -11,7 +11,7 @@ using osu.Game.Tests.Beatmaps;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public abstract class EditorTestCase : OsuTestCase
|
||||
public abstract class EditorTestCase : ScreenTestCase
|
||||
{
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(Editor), typeof(EditorScreen) };
|
||||
|
||||
@ -27,7 +27,7 @@ namespace osu.Game.Tests.Visual
|
||||
{
|
||||
osuGame.Beatmap.Value = new TestWorkingBeatmap(ruleset.RulesetInfo);
|
||||
|
||||
Child = new Editor();
|
||||
LoadComponentAsync(new Editor(), LoadScreen);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user