mirror of https://github.com/ppy/osu
Wait for track to start running before seeking
This commit is contained in:
parent
95082d2fcc
commit
0c293be89c
|
@ -44,6 +44,7 @@ protected override WorkingBeatmap CreateWorkingBeatmap(IBeatmap beatmap)
|
||||||
[Test]
|
[Test]
|
||||||
public void TestNoJudgementsOnRewind()
|
public void TestNoJudgementsOnRewind()
|
||||||
{
|
{
|
||||||
|
AddUntilStep("wait for track to start running", () => track.IsRunning);
|
||||||
addSeekStep(3000);
|
addSeekStep(3000);
|
||||||
AddAssert("all judged", () => player.DrawableRuleset.Playfield.AllHitObjects.All(h => h.Judged));
|
AddAssert("all judged", () => player.DrawableRuleset.Playfield.AllHitObjects.All(h => h.Judged));
|
||||||
AddStep("clear results", () => player.AppliedResults.Clear());
|
AddStep("clear results", () => player.AppliedResults.Clear());
|
||||||
|
|
Loading…
Reference in New Issue