mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 03:22:55 +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
|
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) };
|
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);
|
osuGame.Beatmap.Value = new TestWorkingBeatmap(ruleset.RulesetInfo);
|
||||||
|
|
||||||
Child = new Editor();
|
LoadComponentAsync(new Editor(), LoadScreen);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user