mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 10:23:03 +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.Multiplayer;
|
||||||
using osu.Game.Tests.Visual.Spectator;
|
using osu.Game.Tests.Visual.Spectator;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
using osuTK.Input;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Gameplay
|
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(false); // Should continue playing until out of frames
|
||||||
checkPaused(true); // And eventually stop after running out of frames and fail.
|
checkPaused(true); // And eventually stop after running out of frames and fail.
|
||||||
// Todo: Should check for + display a failed message.
|
// Todo: Should check for + display a failed message.
|
||||||
|
|
||||||
|
AddStep("exit player", () => InputManager.Key(Key.Escape));
|
||||||
|
AddAssert("player exited", () => Stack.CurrentScreen is SoloSpectatorScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user