From 9973db3981327fb507a03cf270320b8637bbd81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Wed, 22 Dec 2021 08:40:17 +0100 Subject: [PATCH] Add failing test steps for right click behaviour --- .../Editor/TestSceneSliderControlPointPiece.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/osu.Game.Rulesets.Osu.Tests/Editor/TestSceneSliderControlPointPiece.cs b/osu.Game.Rulesets.Osu.Tests/Editor/TestSceneSliderControlPointPiece.cs index a0bdcb144f..d8618ee289 100644 --- a/osu.Game.Rulesets.Osu.Tests/Editor/TestSceneSliderControlPointPiece.cs +++ b/osu.Game.Rulesets.Osu.Tests/Editor/TestSceneSliderControlPointPiece.cs @@ -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);