Add test scene with failing test case

This commit is contained in:
Salman Ahmed
2021-01-23 23:29:32 +03:00
parent f2236312a0
commit d83abfa7d2
2 changed files with 137 additions and 7 deletions

View File

@ -59,6 +59,8 @@ namespace osu.Game.Beatmaps.Drawables
updateCover();
}
protected virtual BeatmapSetCover CreateBeatmapSetCover(BeatmapSetInfo beatmapSet, BeatmapSetCoverType coverType) => new BeatmapSetCover(beatmapSet, coverType);
private void updateCover()
{
displayedCover?.FadeOut(400);
@ -69,13 +71,11 @@ namespace osu.Game.Beatmaps.Drawables
{
Add(displayedCover = new DelayedLoadUnloadWrapper(() =>
{
var cover = new BeatmapSetCover(beatmapSet, coverType)
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fill,
};
var cover = CreateBeatmapSetCover(beatmapSet, coverType);
cover.Anchor = Anchor.Centre;
cover.Origin = Anchor.Centre;
cover.RelativeSizeAxes = Axes.Both;
cover.FillMode = FillMode.Fill;
cover.OnLoadComplete += d => d.FadeInFromZero(400, Easing.Out);
return cover;
}));