update TestCase

This commit is contained in:
Jorolf 2017-08-09 19:20:41 +02:00
parent c2c9095b02
commit c877a5a8b7
3 changed files with 25 additions and 24 deletions

View File

@ -39,28 +39,6 @@ namespace osu.Desktop.Tests.Visual
}
});
AddStep("Add First Place", () => ranks.ScoresFirst = new[]
{
new Score
{
Rank = ScoreRank.A,
Accuracy = 0.735,
PP = 666,
Date = DateTimeOffset.UtcNow,
Mods = new Mod[] { new ModAutoplay(), new ModDoubleTime(), new OsuModEasy() },
Beatmap = new BeatmapInfo
{
Metadata = new BeatmapMetadata
{
Title = "FREEDOM DiVE",
Artist = "xi"
},
Version = "FOUR DIMENSIONS",
OnlineBeatmapID = 129891,
}
}
});
AddStep("Add Best Performances", () =>
{
List<Score> scores = new List<Score>();
@ -91,6 +69,30 @@ namespace osu.Desktop.Tests.Visual
}
ranks.ScoresBest = scores.ToArray();
});
AddStep("Add First Place", () => ranks.ScoresFirst = new[]
{
new Score
{
Rank = ScoreRank.A,
Accuracy = 0.735,
PP = 666,
Date = DateTimeOffset.UtcNow,
Mods = new Mod[] { new ModAutoplay(), new ModDoubleTime(), new OsuModEasy() },
Beatmap = new BeatmapInfo
{
Metadata = new BeatmapMetadata
{
Title = "FREEDOM DiVE",
Artist = "xi"
},
Version = "FOUR DIMENSIONS",
OnlineBeatmapID = 129891,
}
}
});
AddStep("Show More", ((RanksSection.ScoreFlowContainer)ranks.Children[1]).ShowMore);
}
}
}

View File

@ -8,7 +8,6 @@ using osu.Framework.Input;
namespace osu.Game.Graphics.Containers
{
public class OsuHoverContainer : OsuClickableContainer
{
private Color4 hoverColour;

View File

@ -114,7 +114,7 @@ namespace osu.Game.Overlays.Profile.Sections
}
}
private class ScoreFlowContainer : Container<DrawableScore>
public class ScoreFlowContainer : Container<DrawableScore>
{
private readonly FillFlowContainer<DrawableScore> scores;
private readonly OsuClickableContainer showMoreText;