Fix test caching woes

This commit is contained in:
Dean Herbert
2022-05-26 18:30:37 +09:00
parent 7f4ea5d522
commit 93c94b8ea0
2 changed files with 9 additions and 8 deletions

View File

@ -6,7 +6,6 @@ using osu.Framework.Bindables;
using osu.Framework.Input.Events;
using osu.Game.Beatmaps;
using osu.Game.Overlays;
using osu.Game.Rulesets.Edit;
using osu.Game.Screens.Edit;
namespace osu.Game.Tests.Visual
@ -20,20 +19,16 @@ namespace osu.Game.Tests.Visual
[Cached]
private readonly OverlayColourProvider overlayColour = new OverlayColourProvider(OverlayColourScheme.Aquamarine);
[Cached(typeof(EditorBeatmap))]
[Cached(typeof(IBeatSnapProvider))]
private readonly EditorBeatmap editorBeatmap;
protected readonly BindableBeatDivisor BeatDivisor = new BindableBeatDivisor();
[Cached]
protected new readonly EditorClock Clock;
protected virtual bool ScrollUsingMouseWheel => true;
protected EditorClockTestScene()
{
editorBeatmap = new EditorBeatmap(new Beatmap());
Clock = new EditorClock(editorBeatmap, BeatDivisor) { IsCoupled = false };
Clock = new EditorClock(new Beatmap(), BeatDivisor) { IsCoupled = false };
}
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)