This commit is contained in:
Mk-56spn
2022-09-08 20:42:55 +02:00
parent 07c16224d2
commit 38ccd06d5e

View File

@ -147,6 +147,7 @@ namespace osu.Game.Tests.Visual.Gameplay
[Test] [Test]
public void TestProcessingWhileHidden() public void TestProcessingWhileHidden()
{ {
const int max_displayed_judgements = 20;
AddStep("OD 1", () => recreateDisplay(new OsuHitWindows(), 1)); AddStep("OD 1", () => recreateDisplay(new OsuHitWindows(), 1));
AddStep("hide displays", () => AddStep("hide displays", () =>
@ -155,7 +156,7 @@ namespace osu.Game.Tests.Visual.Gameplay
hitErrorMeter.Hide(); hitErrorMeter.Hide();
}); });
AddRepeatStep("hit", () => newJudgement(), 10); AddRepeatStep("hit", () => newJudgement(), max_displayed_judgements * 2);
AddAssert("bars added", () => this.ChildrenOfType<BarHitErrorMeter.JudgementLine>().Any()); AddAssert("bars added", () => this.ChildrenOfType<BarHitErrorMeter.JudgementLine>().Any());
AddAssert("circle added", () => this.ChildrenOfType<ColourHitErrorMeter.HitErrorShape>().Any()); AddAssert("circle added", () => this.ChildrenOfType<ColourHitErrorMeter.HitErrorShape>().Any());