1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:03:08 +08:00

Fix test failures due to missing dependencies

This commit is contained in:
Bartłomiej Dach 2021-11-08 15:27:11 +01:00
parent 042b05a250
commit 410e9159d1
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 8 additions and 0 deletions

View File

@ -5,6 +5,7 @@ using System;
using System.Linq; using System.Linq;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Testing; using osu.Framework.Testing;
@ -22,6 +23,9 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
[Resolved] [Resolved]
private SkinManager skins { get; set; } private SkinManager skins { get; set; }
[Cached(Name = nameof(Screens.Edit.Editor.Clipboard))]
private Bindable<string> clipboard = new Bindable<string>();
[SetUpSteps] [SetUpSteps]
public void SetUpSteps() public void SetUpSteps()
{ {

View File

@ -3,6 +3,7 @@
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Osu; using osu.Game.Rulesets.Osu;
@ -26,6 +27,9 @@ namespace osu.Game.Tests.Visual.Editing
} }
}); });
[Cached(Name = nameof(Editor.Clipboard))]
private Bindable<string> clipboard = new Bindable<string>();
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {