Fix remaining test failures

This commit is contained in:
Dean Herbert
2020-05-22 18:23:24 +09:00
parent dd09d7830d
commit 866db629d6
4 changed files with 15 additions and 14 deletions

View File

@ -102,7 +102,9 @@ namespace osu.Game.Tests.Visual.Editing
private class StartStopButton : OsuButton
{
private IAdjustableClock adjustableClock;
[Resolved]
private EditorClock editorClock { get; set; }
private bool started;
public StartStopButton()
@ -114,22 +116,16 @@ namespace osu.Game.Tests.Visual.Editing
Action = onClick;
}
[BackgroundDependencyLoader]
private void load(IAdjustableClock adjustableClock)
{
this.adjustableClock = adjustableClock;
}
private void onClick()
{
if (started)
{
adjustableClock.Stop();
editorClock.Stop();
Text = "Start";
}
else
{
adjustableClock.Start();
editorClock.Start();
Text = "Stop";
}