mirror of https://github.com/ppy/osu
Make sure test is in a break
...because apparently it may take a while to update the flag.
This commit is contained in:
parent
1818a84034
commit
b7938e78a0
|
@ -75,6 +75,7 @@ public void TestTouchDuringBreak()
|
||||||
loadPlayer();
|
loadPlayer();
|
||||||
AddStep("seek to 2000", () => currentPlayer.GameplayClockContainer.Seek(2000));
|
AddStep("seek to 2000", () => currentPlayer.GameplayClockContainer.Seek(2000));
|
||||||
AddUntilStep("wait until 2000", () => currentPlayer.GameplayClockContainer.CurrentTime, () => Is.GreaterThanOrEqualTo(2000));
|
AddUntilStep("wait until 2000", () => currentPlayer.GameplayClockContainer.CurrentTime, () => Is.GreaterThanOrEqualTo(2000));
|
||||||
|
AddUntilStep("wait until break entered", () => currentPlayer.IsBreakTime.Value);
|
||||||
AddStep("touch playfield", () =>
|
AddStep("touch playfield", () =>
|
||||||
{
|
{
|
||||||
var touch = new Touch(TouchSource.Touch1, currentPlayer.DrawableRuleset.Playfield.ScreenSpaceDrawQuad.Centre);
|
var touch = new Touch(TouchSource.Touch1, currentPlayer.DrawableRuleset.Playfield.ScreenSpaceDrawQuad.Centre);
|
||||||
|
|
Loading…
Reference in New Issue