1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Add full statistics score to TestSceneResultsScreen

This commit is contained in:
Dean Herbert 2023-07-13 01:06:26 +09:00
parent 6529c810fa
commit b7ab46d87b
2 changed files with 6 additions and 3 deletions

View File

@ -82,7 +82,10 @@ namespace osu.Game.Tests.Visual.Ranking
RelativeSizeAxes = Axes.Both
};
stack.Push(screen = createResultsScreen());
var score = TestResources.CreateTestScoreInfo();
score.HitEvents = TestSceneStatisticsPanel.CreatePositionDistributedHitEvents();
stack.Push(screen = createResultsScreen(score));
});
AddUntilStep("wait for loaded", () => screen.IsLoaded);
AddAssert("retry overlay not present", () => screen.RetryOverlay == null);

View File

@ -33,7 +33,7 @@ namespace osu.Game.Tests.Visual.Ranking
public void TestScoreWithPositionStatistics()
{
var score = TestResources.CreateTestScoreInfo();
score.HitEvents = createPositionDistributedHitEvents();
score.HitEvents = CreatePositionDistributedHitEvents();
loadPanel(score);
}
@ -87,7 +87,7 @@ namespace osu.Game.Tests.Visual.Ranking
};
});
private static List<HitEvent> createPositionDistributedHitEvents()
public static List<HitEvent> CreatePositionDistributedHitEvents()
{
var hitEvents = TestSceneHitEventTimingDistributionGraph.CreateDistributedHitEvents();