mirror of https://github.com/ppy/osu
Fix test failure due to attempting to set non-present divisor
With the latest changes permitting fully custom beat snapping, the 1/3 snap divisor isn't immediately available in editor, requiring a switch to "triplets" mode first.
This commit is contained in:
parent
a5600516f0
commit
a1786f62d7
|
@ -7,6 +7,7 @@
|
||||||
using osu.Game.Rulesets.Objects;
|
using osu.Game.Rulesets.Objects;
|
||||||
using osu.Game.Rulesets.Osu.Objects;
|
using osu.Game.Rulesets.Osu.Objects;
|
||||||
using osu.Game.Screens.Edit;
|
using osu.Game.Screens.Edit;
|
||||||
|
using osu.Game.Screens.Edit.Compose.Components;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
using osuTK.Input;
|
using osuTK.Input;
|
||||||
|
|
||||||
|
@ -72,7 +73,11 @@ public void TestConversionWithNonMatchingDivisor()
|
||||||
EditorClock.Seek(slider.StartTime);
|
EditorClock.Seek(slider.StartTime);
|
||||||
EditorBeatmap.SelectedHitObjects.Add(slider);
|
EditorBeatmap.SelectedHitObjects.Add(slider);
|
||||||
});
|
});
|
||||||
AddStep("change beat divisor", () => beatDivisor.Value = 3);
|
AddStep("change beat divisor", () =>
|
||||||
|
{
|
||||||
|
beatDivisor.ValidDivisors.Value = BeatDivisorPresetCollection.TRIPLETS;
|
||||||
|
beatDivisor.Value = 3;
|
||||||
|
});
|
||||||
|
|
||||||
convertToStream();
|
convertToStream();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue