mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Fix osu.Game.Tests.Android
not building
This commit is contained in:
parent
eb5f15a77e
commit
9af9155e66
@ -203,7 +203,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
{
|
||||
DelayedFetchResultsScreen screen = null;
|
||||
|
||||
var tcs = new TaskCompletionSource();
|
||||
var tcs = new TaskCompletionSource<bool>();
|
||||
|
||||
AddStep("load results", () => Child = new TestResultsContainer(screen = new DelayedFetchResultsScreen(TestResources.CreateTestScoreInfo(), tcs.Task)));
|
||||
|
||||
@ -218,7 +218,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
||||
|
||||
AddAssert("no fetch yet", () => !screen.FetchCompleted);
|
||||
|
||||
AddStep("allow fetch", () => tcs.SetResult());
|
||||
AddStep("allow fetch", () => tcs.SetResult(true));
|
||||
|
||||
AddUntilStep("wait for fetch", () => screen.FetchCompleted);
|
||||
AddAssert("expanded panel still on screen", () => this.ChildrenOfType<ScorePanel>().Single(p => p.State == PanelState.Expanded).ScreenSpaceDrawQuad.TopLeft.X > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user