1
0
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:
smoogipoo 2018-03-13 16:00:56 +09:00
parent 0c705b0397
commit e97349fd63

View File

@ -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);
}
}
}