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:
parent
6529c810fa
commit
b7ab46d87b
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user