mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:45:09 +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]
|
||||
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 =>
|
||||
{
|
||||
if (resizeContainer != null)
|
||||
@ -45,26 +62,6 @@ namespace osu.Game.Tests.Visual.SongSelectV2
|
||||
Beatmap.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