mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Add test coverage of double click behaviour
This commit is contained in:
parent
f60a6e9893
commit
48024cd17f
@ -363,6 +363,20 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
AddAssert("third selected", () => EditorBeatmap.SelectedHitObjects.Single(), () => Is.EqualTo(thirdObject));
|
AddAssert("third selected", () => EditorBeatmap.SelectedHitObjects.Single(), () => Is.EqualTo(thirdObject));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestDoubleClickToSeek()
|
||||||
|
{
|
||||||
|
var hitCircle = new HitCircle { Position = new Vector2(256, 192), StartTime = 600 };
|
||||||
|
|
||||||
|
AddStep("add hitobjects", () => EditorBeatmap.AddRange(new[] { hitCircle }));
|
||||||
|
|
||||||
|
moveMouseToObject(() => hitCircle);
|
||||||
|
|
||||||
|
AddRepeatStep("double click", () => InputManager.Click(MouseButton.Left), 2);
|
||||||
|
|
||||||
|
AddUntilStep("seeked to circle", () => EditorClock.CurrentTime, () => Is.EqualTo(600));
|
||||||
|
}
|
||||||
|
|
||||||
[TestCase(false)]
|
[TestCase(false)]
|
||||||
[TestCase(true)]
|
[TestCase(true)]
|
||||||
public void TestMultiSelectFromDrag(bool alreadySelectedBeforeDrag)
|
public void TestMultiSelectFromDrag(bool alreadySelectedBeforeDrag)
|
||||||
|
Loading…
Reference in New Issue
Block a user