mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 17:17:19 +08:00
Test fix
This commit is contained in:
parent
07c16224d2
commit
38ccd06d5e
@ -147,6 +147,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
[Test]
|
||||
public void TestProcessingWhileHidden()
|
||||
{
|
||||
const int max_displayed_judgements = 20;
|
||||
AddStep("OD 1", () => recreateDisplay(new OsuHitWindows(), 1));
|
||||
|
||||
AddStep("hide displays", () =>
|
||||
@ -155,7 +156,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
hitErrorMeter.Hide();
|
||||
});
|
||||
|
||||
AddRepeatStep("hit", () => newJudgement(), 10);
|
||||
AddRepeatStep("hit", () => newJudgement(), max_displayed_judgements * 2);
|
||||
|
||||
AddAssert("bars added", () => this.ChildrenOfType<BarHitErrorMeter.JudgementLine>().Any());
|
||||
AddAssert("circle added", () => this.ChildrenOfType<ColourHitErrorMeter.HitErrorShape>().Any());
|
||||
|
Loading…
x
Reference in New Issue
Block a user