mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Handle judgement reverts with actual display updates
This commit is contained in:
@ -63,6 +63,8 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
[Test]
|
||||
public void TestBasicCounting()
|
||||
{
|
||||
int previousValue = 0;
|
||||
|
||||
AddAssert("counter displaying zero", () => counter.Current.Value == 0);
|
||||
|
||||
AddRepeatStep("Add judgement", applyOneJudgement, 10);
|
||||
@ -72,14 +74,16 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
|
||||
AddStep("Revert judgement", () =>
|
||||
{
|
||||
previousValue = counter.Current.Value;
|
||||
|
||||
scoreProcessor.RevertResult(new JudgementResult(new HitObject(), new OsuJudgement()));
|
||||
});
|
||||
|
||||
AddUntilStep("counter faded", () => counter.Child.Alpha < 1);
|
||||
AddUntilStep("counter decreased", () => counter.Current.Value < previousValue);
|
||||
|
||||
AddStep("Add judgement", applyOneJudgement);
|
||||
|
||||
AddUntilStep("counter opaque", () => counter.Child.Alpha == 1);
|
||||
AddUntilStep("counter non-zero", () => counter.Current.Value > 0);
|
||||
}
|
||||
|
||||
private void applyOneJudgement()
|
||||
|
Reference in New Issue
Block a user