mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Fix headless test
This commit is contained in:
parent
2720bcf285
commit
1b25633e47
@ -33,20 +33,16 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
||||
{
|
||||
private TestComposer composer;
|
||||
|
||||
[Cached]
|
||||
public readonly OsuContextMenuContainer ContextMenuContainer = new OsuContextMenuContainer();
|
||||
|
||||
[SetUp]
|
||||
public void Setup() => Schedule(() =>
|
||||
{
|
||||
BeatDivisor.Value = 8;
|
||||
EditorClock.Seek(0);
|
||||
|
||||
Child = new DependencyProvidingContainer
|
||||
{
|
||||
CachedDependencies = new (Type, object)[]
|
||||
{
|
||||
(typeof(OsuContextMenuContainer), new OsuContextMenuContainer()),
|
||||
},
|
||||
Child = composer = new TestComposer { RelativeSizeAxes = Axes.Both },
|
||||
};
|
||||
Child = composer = new TestComposer { RelativeSizeAxes = Axes.Both };
|
||||
});
|
||||
|
||||
[Test]
|
||||
|
@ -33,6 +33,9 @@ namespace osu.Game.Tests.Editing
|
||||
[Cached(typeof(IBeatSnapProvider))]
|
||||
private readonly EditorBeatmap editorBeatmap;
|
||||
|
||||
[Cached]
|
||||
public readonly OsuContextMenuContainer ContextMenuContainer = new OsuContextMenuContainer();
|
||||
|
||||
protected override Container<Drawable> Content { get; } = new PopoverContainer { RelativeSizeAxes = Axes.Both };
|
||||
|
||||
public TestSceneHitObjectComposerDistanceSnapping()
|
||||
@ -54,14 +57,7 @@ namespace osu.Game.Tests.Editing
|
||||
[SetUp]
|
||||
public void Setup() => Schedule(() =>
|
||||
{
|
||||
Child = new DependencyProvidingContainer
|
||||
{
|
||||
CachedDependencies = new (Type, object)[]
|
||||
{
|
||||
(typeof(OsuContextMenuContainer), new OsuContextMenuContainer()),
|
||||
},
|
||||
Child = composer = new TestHitObjectComposer(),
|
||||
};
|
||||
Child = composer = new TestHitObjectComposer();
|
||||
|
||||
BeatDivisor.Value = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user