2020-06-02 01:48:23 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Framework.Screens;
|
2020-08-21 06:50:14 +00:00
|
|
|
|
using osu.Framework.Utils;
|
2020-06-02 01:48:23 +00:00
|
|
|
|
using osu.Game.Screens.Menu;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Menus
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2020-06-02 19:06:22 +00:00
|
|
|
|
public class TestSceneIntroWelcome : IntroTestScene
|
2020-06-02 01:48:23 +00:00
|
|
|
|
{
|
2020-06-02 19:06:22 +00:00
|
|
|
|
protected override IScreen CreateScreen() => new IntroWelcome();
|
2020-06-29 00:16:19 +00:00
|
|
|
|
|
|
|
|
|
public TestSceneIntroWelcome()
|
|
|
|
|
{
|
2020-08-04 12:53:00 +00:00
|
|
|
|
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
|
2020-08-21 06:50:14 +00:00
|
|
|
|
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
|
2020-08-07 11:51:56 +00:00
|
|
|
|
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
|
2020-06-29 00:16:19 +00:00
|
|
|
|
}
|
2020-06-02 01:48:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|