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:
Bartłomiej Dach 2022-02-27 23:10:22 +01:00
parent a5600516f0
commit a1786f62d7
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 6 additions and 1 deletions

View File

@ -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();