2020-06-02 03:48:23 +02: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;
|
2020-08-21 15:50:14 +09:00
|
|
|
|
using osu.Framework.Utils;
|
2020-06-02 03:48:23 +02:00
|
|
|
|
using osu.Game.Screens.Menu;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Menus
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2022-11-24 14:32:20 +09:00
|
|
|
|
public partial class TestSceneIntroWelcome : IntroTestScene
|
2020-06-02 03:48:23 +02:00
|
|
|
|
{
|
2022-01-30 18:59:18 +09:00
|
|
|
|
protected override bool IntroReliesOnTrack => false;
|
2021-10-07 18:39:48 +09:00
|
|
|
|
protected override IntroScreen CreateScreen() => new IntroWelcome();
|
2020-06-29 02:16:19 +02:00
|
|
|
|
|
2021-10-07 19:58:34 +09:00
|
|
|
|
public override void TestPlayIntro()
|
2020-06-29 02:16:19 +02:00
|
|
|
|
{
|
2021-10-07 19:58:34 +09:00
|
|
|
|
base.TestPlayIntro();
|
|
|
|
|
|
2020-08-04 21:53:00 +09:00
|
|
|
|
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
|
2020-08-21 15:50:14 +09:00
|
|
|
|
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
|
2020-08-07 20:51:56 +09:00
|
|
|
|
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
|
2020-06-29 02:16:19 +02:00
|
|
|
|
}
|
2020-06-02 03:48:23 +02:00
|
|
|
|
}
|
|
|
|
|
}
|