1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Add failing test case for slider velocity undo

This commit is contained in:
Bartłomiej Dach 2023-05-22 21:17:21 +02:00
parent 7742904d2a
commit 843d2903d2
No known key found for this signature in database

View File

@ -92,6 +92,20 @@ namespace osu.Game.Tests.Visual.Editing
hitObjectHasVelocity(1, 5); hitObjectHasVelocity(1, 5);
} }
[Test]
public void TestUndo()
{
clickDifficultyPiece(1);
velocityPopoverHasSingleValue(2);
setVelocityViaPopover(5);
hitObjectHasVelocity(1, 5);
dismissPopover();
AddStep("undo", () => Editor.Undo());
hitObjectHasVelocity(1, 2);
}
[Test] [Test]
public void TestMultipleSelectionWithSameSliderVelocity() public void TestMultipleSelectionWithSameSliderVelocity()
{ {