mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Update test to cover changed exit/pause logic
I think this makes more sense?
This commit is contained in:
parent
2c052d70e8
commit
94f35825dd
@ -108,19 +108,19 @@ namespace osu.Game.Tests.Visual.Gameplay
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestExitTooSoon()
|
public void TestExitSoonAfterResumeSucceeds()
|
||||||
{
|
{
|
||||||
AddStep("seek before gameplay", () => Player.GameplayClockContainer.Seek(-5000));
|
AddStep("seek before gameplay", () => Player.GameplayClockContainer.Seek(-5000));
|
||||||
|
|
||||||
pauseAndConfirm();
|
pauseAndConfirm();
|
||||||
resume();
|
resume();
|
||||||
|
|
||||||
AddStep("exit too soon", () => Player.Exit());
|
AddStep("exit quick", () => Player.Exit());
|
||||||
|
|
||||||
confirmClockRunning(true);
|
confirmClockRunning(true);
|
||||||
confirmPauseOverlayShown(false);
|
confirmPauseOverlayShown(false);
|
||||||
|
|
||||||
AddAssert("not exited", () => Player.IsCurrentScreen());
|
AddAssert("exited", () => !Player.IsCurrentScreen());
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Loading…
Reference in New Issue
Block a user