Add visualtest to check if Track loops in Welcome

This commit is contained in:
Shivam
2020-06-29 02:16:19 +02:00
parent 444504f2b9
commit 0c4b06b485
2 changed files with 19 additions and 6 deletions

View File

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