mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix weird edge case in TestSceneIntroWelcome
This commit is contained in:
@ -43,7 +43,7 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestPlayIntro()
|
public virtual void TestPlayIntro()
|
||||||
{
|
{
|
||||||
AddStep("restart sequence", () =>
|
AddStep("restart sequence", () =>
|
||||||
{
|
{
|
||||||
|
@ -12,8 +12,10 @@ namespace osu.Game.Tests.Visual.Menus
|
|||||||
{
|
{
|
||||||
protected override IntroScreen CreateScreen() => new IntroWelcome();
|
protected override IntroScreen CreateScreen() => new IntroWelcome();
|
||||||
|
|
||||||
public TestSceneIntroWelcome()
|
public override void TestPlayIntro()
|
||||||
{
|
{
|
||||||
|
base.TestPlayIntro();
|
||||||
|
|
||||||
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
|
AddUntilStep("wait for load", () => MusicController.TrackLoaded);
|
||||||
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
|
AddAssert("correct track", () => Precision.AlmostEquals(MusicController.CurrentTrack.Length, 48000, 1));
|
||||||
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
|
AddAssert("check if menu music loops", () => MusicController.CurrentTrack.Looping);
|
||||||
|
Reference in New Issue
Block a user