mirror of
https://github.com/ppy/osu
synced 2025-03-06 03:19:47 +00:00
Add test case for switching to each screen in editor test scenes
This commit is contained in:
parent
f02b6b3657
commit
f9b25a0159
@ -3,6 +3,7 @@
|
||||
|
||||
using System.Linq;
|
||||
using JetBrains.Annotations;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.IO.Stores;
|
||||
@ -28,6 +29,9 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected EditorClock EditorClock { get; private set; }
|
||||
|
||||
[Resolved]
|
||||
private SkinManager skins { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether any saves performed by the editor should be isolate (and not persist) to the underlying <see cref="BeatmapManager"/>.
|
||||
/// </summary>
|
||||
@ -57,6 +61,12 @@ namespace osu.Game.Tests.Visual
|
||||
AddStep("get clock", () => EditorClock = Editor.ChildrenOfType<EditorClock>().Single());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestLegacySkin()
|
||||
{
|
||||
AddStep("set legacy skin", () => skins.CurrentSkinInfo.Value = DefaultLegacySkin.Info);
|
||||
}
|
||||
|
||||
protected virtual void LoadEditor()
|
||||
{
|
||||
LoadScreen(Editor = CreateEditor());
|
||||
|
Loading…
Reference in New Issue
Block a user