mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 02:43:16 +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;
|
||||||
using osu.Game.Screens.Edit.Timing;
|
using osu.Game.Screens.Edit.Timing;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
using osuTK.Input;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Editing
|
namespace osu.Game.Tests.Visual.Editing
|
||||||
{
|
{
|
||||||
@ -125,6 +126,13 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
AddUntilStep("wait for track stopped", () => !EditorClock.IsRunning);
|
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)
|
protected override void Dispose(bool isDisposing)
|
||||||
{
|
{
|
||||||
Beatmap.Disabled = false;
|
Beatmap.Disabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user