From 627114abeca6f0d6d7e5e0e0a5f9e463270bd59b Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 14 Apr 2017 19:23:33 +0900 Subject: [PATCH] Improve test case. --- osu.Desktop.VisualTests/Tests/TestCaseSongProgress.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseSongProgress.cs b/osu.Desktop.VisualTests/Tests/TestCaseSongProgress.cs index 50d6918faa..363b0b481e 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseSongProgress.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseSongProgress.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using osu.Framework.Graphics; using osu.Framework.MathUtils; using osu.Framework.Testing; +using osu.Framework.Timing; using osu.Game.Modes.Objects; using osu.Game.Screens.Play; @@ -22,14 +23,16 @@ namespace osu.Desktop.VisualTests.Tests Add(progress = new SongProgress { + AudioClock = new StopwatchClock(true), Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, }); AddStep("Toggle Bar", progress.ToggleBar); AddWaitStep(5); - //AddStep("Toggle Bar", progress.ToggleVisibility); - //AddStep("New Values", displayNewValues); + AddStep("Toggle Bar", progress.ToggleBar); + AddWaitStep(2); + AddRepeatStep("New Values", displayNewValues, 5); displayNewValues(); } @@ -37,7 +40,7 @@ namespace osu.Desktop.VisualTests.Tests private void displayNewValues() { List objects = new List(); - for (double i = 0; i < 2000; i += RNG.NextDouble() * 10 + i / 1000) + for (double i = 0; i < 5000; i += RNG.NextDouble() * 10 + i / 1000) objects.Add(new HitObject { StartTime = i }); progress.Objects = objects;