mirror of
https://github.com/ppy/osu.git
synced 2026-06-08 23:25:01 +08:00
Add test coverage of fast menu keypresses failing to register
This commit is contained in:
@@ -28,6 +28,21 @@ namespace osu.Game.Tests.Visual.Navigation
|
||||
AddAssert("state is top level", () => buttons.State == ButtonSystemState.TopLevel);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestFastShortcutKeys()
|
||||
{
|
||||
AddAssert("state is initial", () => buttons.State == ButtonSystemState.Initial);
|
||||
|
||||
AddStep("press P three times", () =>
|
||||
{
|
||||
InputManager.Key(Key.P);
|
||||
InputManager.Key(Key.P);
|
||||
InputManager.Key(Key.P);
|
||||
});
|
||||
|
||||
AddAssert("entered song select", () => Game.ScreenStack.CurrentScreen is PlaySongSelect);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestShortcutKeys()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user