mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 12:33:01 +08:00
Remove unncessary test step
This commit is contained in:
parent
07bd901358
commit
5e0ccb6c91
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using NUnit.Framework;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
@ -43,24 +42,19 @@ namespace osu.Game.Tournament.Tests.Components
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
private void success(APIBeatmap apiBeatmap)
|
||||||
public void TestModDisplay()
|
|
||||||
{
|
{
|
||||||
AddUntilStep("beatmap is available", () => beatmap != null);
|
beatmap = apiBeatmap.ToBeatmap(rulesets);
|
||||||
AddStep("add maps with available mods for ruleset", () => displayForRuleset(Ladder.Ruleset.Value.ID ?? 0));
|
var mods = rulesets.GetRuleset(Ladder.Ruleset.Value.ID ?? 0).CreateInstance().GetAllMods();
|
||||||
}
|
|
||||||
|
|
||||||
private void displayForRuleset(int rulesetId)
|
|
||||||
{
|
|
||||||
fillFlow.Clear();
|
|
||||||
var mods = rulesets.GetRuleset(rulesetId).CreateInstance().GetAllMods();
|
|
||||||
|
|
||||||
foreach (var mod in mods)
|
foreach (var mod in mods)
|
||||||
{
|
{
|
||||||
fillFlow.Add(new TournamentBeatmapPanel(beatmap, mod.Acronym));
|
fillFlow.Add(new TournamentBeatmapPanel(beatmap, mod.Acronym)
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void success(APIBeatmap apiBeatmap) => beatmap = apiBeatmap.ToBeatmap(rulesets);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user