From c8a19338748abc2a6052c717c6e87b414c3620fc Mon Sep 17 00:00:00 2001 From: smoogipooo Date: Fri, 16 Jun 2017 13:06:44 +0900 Subject: [PATCH] Implement proper expiry in test case. --- .../Tests/TestCaseScrollingHitObjects.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs index 5e73d900a5..ca1f0d7396 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseScrollingHitObjects.cs @@ -195,11 +195,25 @@ namespace osu.Desktop.VisualTests.Tests FadeInFromZero(250, EasingTypes.OutQuint); } + private bool hasExpired = false; protected override void Update() { base.Update(); if (Time.Current >= HitObject.StartTime) + { background.Colour = Color4.Red; + + if (!hasExpired) + { + using (BeginDelayedSequence(200)) + { + FadeOut(200); + Expire(); + } + + hasExpired = true; + } + } } } }