From 6dc03c1cc48c1f5d59cb42a0eba7914a80023247 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 5 Apr 2017 09:57:22 +0900 Subject: [PATCH] Add adjustable clock to testcase. --- osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs b/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs index c7ef33c573..4bf44a21e4 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseTaikoPlayfield.cs @@ -5,6 +5,7 @@ using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.MathUtils; using osu.Framework.Testing; +using osu.Framework.Timing; using osu.Game.Modes.Objects.Drawables; using osu.Game.Modes.Taiko.Judgements; using osu.Game.Modes.Taiko.Objects; @@ -37,8 +38,12 @@ namespace osu.Desktop.VisualTests.Tests AddStep("Add bar line", () => addBarLine(false)); AddStep("Add major bar line", () => addBarLine(true)); + + var rateAdjustClock = new StopwatchClock(true) { Rate = 1 }; + Add(new Container { + Clock = new FramedClock(rateAdjustClock), RelativeSizeAxes = Axes.X, Y = 200, Children = new[]