1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 05:32:54 +08:00

Add failing test steps for right click behaviour

This commit is contained in:
Bartłomiej Dach 2021-12-22 08:40:17 +01:00
parent e715bff535
commit 9973db3981
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -58,6 +58,10 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
assertSelectionCount(1);
assertSelected(0);
AddStep("click right mouse", () => InputManager.Click(MouseButton.Right));
assertSelectionCount(1);
assertSelected(0);
moveMouseToControlPoint(3);
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
assertSelectionCount(1);
@ -77,6 +81,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
assertSelected(2);
assertSelected(3);
AddStep("click right mouse", () => InputManager.Click(MouseButton.Right));
assertSelectionCount(3);
assertSelected(0);
assertSelected(2);
assertSelected(3);
AddStep("release control", () => InputManager.ReleaseKey(Key.ControlLeft));
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
assertSelectionCount(1);