1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 04:09:54 +08:00

Fix TestSceneSkinnableSound not doing DI correctly

This commit is contained in:
Dean Herbert
2021-05-27 15:39:35 +09:00
Unverified
parent b13b732e02
commit c39ea85701
@@ -29,14 +29,13 @@ namespace osu.Game.Tests.Visual.Gameplay
{
AddStep("setup hierarchy", () =>
{
Children = new Drawable[]
Child = skinSource = new TestSkinSourceContainer
{
skinSource = new TestSkinSourceContainer
{
RelativeSizeAxes = Axes.Both,
Child = skinnableSound = new PausableSkinnableSound(new SampleInfo("Gameplay/normal-sliderslide"))
},
RelativeSizeAxes = Axes.Both,
};
// has to be added after the hierarchy above else the `ISkinSource` dependency won't be cached.
skinSource.Add(skinnableSound = new PausableSkinnableSound(new SampleInfo("Gameplay/normal-sliderslide")));
});
}