mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 18:12:56 +08:00
CI fixes
This commit is contained in:
parent
96e99d996b
commit
f5e510cdf2
@ -25,10 +25,10 @@ namespace osu.Game.Tests.Visual
|
|||||||
private readonly IEnumerable<OnlineScore> anotherScores;
|
private readonly IEnumerable<OnlineScore> anotherScores;
|
||||||
private readonly OnlineScore topScore;
|
private readonly OnlineScore topScore;
|
||||||
private readonly Box background;
|
private readonly Box background;
|
||||||
private readonly Container container;
|
|
||||||
|
|
||||||
public TestCaseBeatmapScoresContainer()
|
public TestCaseBeatmapScoresContainer()
|
||||||
{
|
{
|
||||||
|
Container container;
|
||||||
ScoresContainer scoresContainer;
|
ScoresContainer scoresContainer;
|
||||||
|
|
||||||
Child = container = new Container
|
Child = container = new Container
|
||||||
@ -47,14 +47,14 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
AddStep("scores pack 1", () => scoresContainer.Scores = scores);
|
AddStep("scores pack 1", () => scoresContainer.Scores = scores);
|
||||||
AddStep("scores pack 2", () => scoresContainer.Scores = anotherScores);
|
AddStep("scores pack 2", () => scoresContainer.Scores = anotherScores);
|
||||||
AddStep("only top score", () => scoresContainer.Scores = new OnlineScore[] { topScore });
|
AddStep("only top score", () => scoresContainer.Scores = new[] { topScore });
|
||||||
AddStep("remove scores", scoresContainer.CleanAllScores);
|
AddStep("remove scores", scoresContainer.CleanAllScores);
|
||||||
AddStep("turn on loading", () => scoresContainer.IsLoading = true);
|
AddStep("turn on loading", () => scoresContainer.IsLoading = true);
|
||||||
AddStep("turn off loading", () => scoresContainer.IsLoading = false);
|
AddStep("turn off loading", () => scoresContainer.IsLoading = false);
|
||||||
AddStep("resize to big", () => container.ResizeWidthTo(1, 300));
|
AddStep("resize to big", () => container.ResizeWidthTo(1, 300));
|
||||||
AddStep("resize to normal", () => container.ResizeWidthTo(0.8f, 300));
|
AddStep("resize to normal", () => container.ResizeWidthTo(0.8f, 300));
|
||||||
|
|
||||||
scores = new OnlineScore[]
|
scores = new[]
|
||||||
{
|
{
|
||||||
new OnlineScore
|
new OnlineScore
|
||||||
{
|
{
|
||||||
@ -166,7 +166,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
s.Statistics.Add("50", RNG.Next(2000));
|
s.Statistics.Add("50", RNG.Next(2000));
|
||||||
}
|
}
|
||||||
|
|
||||||
anotherScores = new OnlineScore[]
|
anotherScores = new[]
|
||||||
{
|
{
|
||||||
new OnlineScore
|
new OnlineScore
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user