mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 01:32:55 +08:00
Use repeat step for more delay between the two exits
This commit is contained in:
parent
ea714c86d4
commit
b190333c17
@ -799,11 +799,7 @@ namespace osu.Game.Tests.Visual.Navigation
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
AddStep("attempt exit", () =>
|
AddRepeatStep("attempt force exit", () => Game.ScreenStack.CurrentScreen.Exit(), 2);
|
||||||
{
|
|
||||||
for (int i = 0; i < 2; ++i)
|
|
||||||
Game.ScreenStack.CurrentScreen.Exit();
|
|
||||||
});
|
|
||||||
AddUntilStep("stopped at exit confirm", () => Game.ChildrenOfType<DialogOverlay>().Single().CurrentDialog is ConfirmExitDialog);
|
AddUntilStep("stopped at exit confirm", () => Game.ChildrenOfType<DialogOverlay>().Single().CurrentDialog is ConfirmExitDialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user