mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 00:23:21 +08:00
Fix failing test setup
This commit is contained in:
parent
6f2bc7e6f1
commit
1665d9a93e
@ -28,6 +28,23 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
|
base.Content.Child = resizeContainer = new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Padding = new MarginPadding(10),
|
||||||
|
Width = relativeWidth,
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
new Box
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Colour = ColourProvider.Background5,
|
||||||
|
},
|
||||||
|
Content
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
AddSliderStep("change relative width", 0, 1f, 0.5f, v =>
|
AddSliderStep("change relative width", 0, 1f, 0.5f, v =>
|
||||||
{
|
{
|
||||||
if (resizeContainer != null)
|
if (resizeContainer != null)
|
||||||
@ -45,26 +62,6 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
|||||||
Beatmap.SetDefault();
|
Beatmap.SetDefault();
|
||||||
SelectedMods.SetDefault();
|
SelectedMods.SetDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
AddStep("setup content", () =>
|
|
||||||
{
|
|
||||||
base.Content.Add(resizeContainer = new Container
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.X,
|
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
Padding = new MarginPadding(10),
|
|
||||||
Width = relativeWidth,
|
|
||||||
Children = new Drawable[]
|
|
||||||
{
|
|
||||||
new Box
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Colour = ColourProvider.Background5,
|
|
||||||
},
|
|
||||||
Content
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user