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