1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 12:30:30 +08:00

Update framework

This commit is contained in:
Dean Herbert
2018-05-25 19:08:46 +09:00
Unverified
parent 699f661b02
commit 8977670088
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -44,13 +44,13 @@ namespace osu.Game.Tests.Visual
{
exitAction = false;
InputManager.MoveMouseTo(quitButton);
InputManager.ButtonDown(MouseButton.Left);
InputManager.PressButton(MouseButton.Left);
});
AddStep("Early release", () => InputManager.ButtonUp(MouseButton.Left));
AddStep("Early release", () => InputManager.ReleaseButton(MouseButton.Left));
AddAssert("action not triggered", () => !exitAction);
AddStep("Trigger exit action", () => InputManager.ButtonDown(MouseButton.Left));
AddStep("Trigger exit action", () => InputManager.PressButton(MouseButton.Left));
AddUntilStep(() => exitAction, $"{nameof(quitButton.Action)} was triggered");
}
}