mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 20:22:58 +08:00
add failure test
This commit is contained in:
parent
52c1858bbe
commit
29fda745a4
@ -299,6 +299,14 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
});
|
});
|
||||||
assertControlPointTypeDuringPlacement(0, PathType.BSpline(4));
|
assertControlPointTypeDuringPlacement(0, PathType.BSpline(4));
|
||||||
|
|
||||||
|
AddStep("press alt-2", () =>
|
||||||
|
{
|
||||||
|
InputManager.PressKey(Key.AltLeft);
|
||||||
|
InputManager.Key(Key.Number2);
|
||||||
|
InputManager.ReleaseKey(Key.AltLeft);
|
||||||
|
});
|
||||||
|
assertControlPointTypeDuringPlacement(0, PathType.BEZIER);
|
||||||
|
|
||||||
AddStep("start new segment via S", () => InputManager.Key(Key.S));
|
AddStep("start new segment via S", () => InputManager.Key(Key.S));
|
||||||
assertControlPointTypeDuringPlacement(2, PathType.LINEAR);
|
assertControlPointTypeDuringPlacement(2, PathType.LINEAR);
|
||||||
|
|
||||||
@ -309,7 +317,7 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
addClickStep(MouseButton.Right);
|
addClickStep(MouseButton.Right);
|
||||||
|
|
||||||
assertPlaced(true);
|
assertPlaced(true);
|
||||||
assertFinalControlPointType(0, PathType.BSpline(4));
|
assertFinalControlPointType(0, PathType.BEZIER);
|
||||||
assertFinalControlPointType(2, PathType.PERFECT_CURVE);
|
assertFinalControlPointType(2, PathType.PERFECT_CURVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user