mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add test coverage for crash scenario
This commit is contained in:
parent
d146f86511
commit
06449b62f1
@ -18,6 +18,7 @@ using osu.Game.Overlays;
|
||||
using osu.Game.Screens.Edit;
|
||||
using osu.Game.Screens.Edit.Timing;
|
||||
using osuTK;
|
||||
using osuTK.Input;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Editing
|
||||
{
|
||||
@ -125,6 +126,13 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
AddUntilStep("wait for track stopped", () => !EditorClock.IsRunning);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestNoCrashOnTapWhenNoGroupSelected()
|
||||
{
|
||||
AddStep("unset selected group", () => selectedGroup.Value = null);
|
||||
AddStep("press T to tap", () => InputManager.Key(Key.T));
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
Beatmap.Disabled = false;
|
||||
|
Loading…
Reference in New Issue
Block a user