mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 12:22:56 +08:00
Add test for spectator player exit
This commit is contained in:
parent
dee57c7e72
commit
e8a1061777
@ -25,6 +25,7 @@ using osu.Game.Tests.Gameplay;
|
||||
using osu.Game.Tests.Visual.Multiplayer;
|
||||
using osu.Game.Tests.Visual.Spectator;
|
||||
using osuTK;
|
||||
using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Gameplay
|
||||
{
|
||||
@ -214,6 +215,9 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
checkPaused(false); // Should continue playing until out of frames
|
||||
checkPaused(true); // And eventually stop after running out of frames and fail.
|
||||
// Todo: Should check for + display a failed message.
|
||||
|
||||
AddStep("exit player", () => InputManager.Key(Key.Escape));
|
||||
AddAssert("player exited", () => Stack.CurrentScreen is SoloSpectatorScreen);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
Loading…
Reference in New Issue
Block a user