Fix spectating when starting from a point that isn't at the beginning of the beatmap

This commit is contained in:
Dean Herbert
2020-10-27 18:56:28 +09:00
parent a289b7034f
commit 42b3aa3359
7 changed files with 93 additions and 18 deletions

View File

@ -93,9 +93,15 @@ namespace osu.Game.Tests.Visual.Gameplay
public void TestSpectatingDuringGameplay()
{
start();
sendFrames();
// should seek immediately to available frames
loadSpectatingScreen();
AddStep("advance frame count", () => nextFrame = 300);
sendFrames();
waitForPlayer();
AddUntilStep("playing from correct point in time", () => player.ChildrenOfType<DrawableRuleset>().First().FrameStableClock.CurrentTime > 30000);
}
[Test]