mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 05:52:54 +08:00
Remove redundant test step
This commit is contained in:
parent
d18a8ec9f5
commit
3b84ce7c9f
@ -26,7 +26,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
var text = holdToQuit.Children.OfType<SpriteText>().Single();
|
var text = holdToQuit.Children.OfType<SpriteText>().Single();
|
||||||
|
|
||||||
AddStep("Text fade in", () =>
|
AddStep("Trigger text fade in/out", () =>
|
||||||
{
|
{
|
||||||
exitAction = false;
|
exitAction = false;
|
||||||
holdToQuit.Button.TriggerOnMouseDown();
|
holdToQuit.Button.TriggerOnMouseDown();
|
||||||
@ -34,14 +34,6 @@ namespace osu.Game.Tests.Visual
|
|||||||
});
|
});
|
||||||
|
|
||||||
AddUntilStep(() => text.IsPresent && !exitAction, "Text visible");
|
AddUntilStep(() => text.IsPresent && !exitAction, "Text visible");
|
||||||
|
|
||||||
AddStep("Text fade out", () =>
|
|
||||||
{
|
|
||||||
exitAction = false;
|
|
||||||
holdToQuit.Button.TriggerOnMouseDown();
|
|
||||||
holdToQuit.Button.TriggerOnMouseUp();
|
|
||||||
});
|
|
||||||
|
|
||||||
AddUntilStep(() => !text.IsPresent && !exitAction, "Text is not visible");
|
AddUntilStep(() => !text.IsPresent && !exitAction, "Text is not visible");
|
||||||
|
|
||||||
AddStep("Trigger exit action", () =>
|
AddStep("Trigger exit action", () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user