mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Add visualtest to check if Track loops in Welcome
This commit is contained in:
@ -11,5 +11,18 @@ namespace osu.Game.Tests.Visual.Menus
|
||||
public class TestSceneIntroWelcome : IntroTestScene
|
||||
{
|
||||
protected override IScreen CreateScreen() => new IntroWelcome();
|
||||
|
||||
public TestSceneIntroWelcome()
|
||||
{
|
||||
AddAssert("check if menu music loops", () =>
|
||||
{
|
||||
var menu = IntroStack?.CurrentScreen as MainMenu;
|
||||
|
||||
if (menu == null)
|
||||
return false;
|
||||
|
||||
return menu.Track.Looping;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user