mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Ensure frames arrive
This commit is contained in:
@ -9,6 +9,8 @@ using osu.Framework.Testing;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Online.Spectator;
|
||||
using osu.Game.Replays.Legacy;
|
||||
using osu.Game.Rulesets.Osu;
|
||||
using osu.Game.Rulesets.Osu.Replays;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Tests.Beatmaps.IO;
|
||||
using osu.Game.Users;
|
||||
@ -38,12 +40,19 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
});
|
||||
}
|
||||
|
||||
private OsuFramedReplayInputHandler replayHandler =>
|
||||
(OsuFramedReplayInputHandler)Stack.ChildrenOfType<OsuInputManager>().First().ReplayInputHandler;
|
||||
|
||||
[Test]
|
||||
public void TestBasicSpectatingFlow()
|
||||
{
|
||||
beginSpectating();
|
||||
AddStep("start play", () => testSpectatorStreamingClient.StartPlay());
|
||||
AddStep("send frames", () => testSpectatorStreamingClient.SendFrames());
|
||||
|
||||
AddUntilStep("wait for player", () => Stack.CurrentScreen is Player);
|
||||
|
||||
AddAssert("ensure frames arrived", () => replayHandler.HasFrames);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Reference in New Issue
Block a user