mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 05:32:54 +08:00
Merge pull request #16452 from Susko3/tcs-xamarin
Fix `osu.Game.Tests.Android` not building
This commit is contained in:
commit
48498cf8a1
@ -203,7 +203,7 @@ namespace osu.Game.Tests.Visual.Ranking
|
|||||||
{
|
{
|
||||||
DelayedFetchResultsScreen screen = null;
|
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)));
|
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);
|
AddAssert("no fetch yet", () => !screen.FetchCompleted);
|
||||||
|
|
||||||
AddStep("allow fetch", () => tcs.SetResult());
|
AddStep("allow fetch", () => tcs.SetResult(true));
|
||||||
|
|
||||||
AddUntilStep("wait for fetch", () => screen.FetchCompleted);
|
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);
|
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