Don't display calibration options when the previous play was too short to be useful

This commit is contained in:
Dean Herbert
2022-03-01 19:31:11 +09:00
parent bc2a15db96
commit 4d9efe771b
2 changed files with 50 additions and 10 deletions

View File

@ -33,6 +33,20 @@ namespace osu.Game.Tests.Visual.Gameplay
});
}
[Test]
public void TestTooShortToDisplay()
{
AddStep("Set short reference score", () =>
{
offsetControl.ReferenceScore.Value = new ScoreInfo
{
HitEvents = TestSceneHitEventTimingDistributionGraph.CreateDistributedHitEvents(0, 2)
};
});
AddAssert("No calibration button", () => !offsetControl.ChildrenOfType<SettingsButton>().Any());
}
[Test]
public void TestDisplay()
{