mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Test fix
This commit is contained in:
@ -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());
|
||||||
|
Reference in New Issue
Block a user