mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 08:33:21 +08:00
Add failing test steps for right click behaviour
This commit is contained in:
parent
e715bff535
commit
9973db3981
@ -58,6 +58,10 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
assertSelectionCount(1);
|
assertSelectionCount(1);
|
||||||
assertSelected(0);
|
assertSelected(0);
|
||||||
|
|
||||||
|
AddStep("click right mouse", () => InputManager.Click(MouseButton.Right));
|
||||||
|
assertSelectionCount(1);
|
||||||
|
assertSelected(0);
|
||||||
|
|
||||||
moveMouseToControlPoint(3);
|
moveMouseToControlPoint(3);
|
||||||
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
|
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
|
||||||
assertSelectionCount(1);
|
assertSelectionCount(1);
|
||||||
@ -77,6 +81,12 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
assertSelected(2);
|
assertSelected(2);
|
||||||
assertSelected(3);
|
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("release control", () => InputManager.ReleaseKey(Key.ControlLeft));
|
||||||
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
|
AddStep("click left mouse", () => InputManager.Click(MouseButton.Left));
|
||||||
assertSelectionCount(1);
|
assertSelectionCount(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user