mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 23:23:30 +08:00
Update failing snap test scenes
This commit is contained in:
parent
9504942cfd
commit
500322ff21
@ -3,9 +3,11 @@
|
||||
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Edit;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Rulesets.Osu.UI;
|
||||
using osu.Game.Tests.Beatmaps;
|
||||
@ -26,6 +28,11 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
base.SetUpSteps();
|
||||
AddStep("get playfield", () => playfield = Editor.ChildrenOfType<OsuPlayfield>().First());
|
||||
AddStep("seek to first control point", () => EditorClock.Seek(Beatmap.Value.Beatmap.ControlPointInfo.TimingPoints.First().Time));
|
||||
AddStep("set distance spacing to 1", () =>
|
||||
{
|
||||
var distanceSpacing = (BindableFloat)Editor.ChildrenOfType<HitObjectComposer>().Single().DistanceSpacingMultiplier;
|
||||
distanceSpacing.Value = 1;
|
||||
});
|
||||
}
|
||||
|
||||
[TestCase(true)]
|
||||
|
@ -3,12 +3,15 @@
|
||||
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Framework.Utils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Game.Input.Bindings;
|
||||
using osu.Game.Rulesets.Edit;
|
||||
using osu.Game.Rulesets.Objects;
|
||||
using osu.Game.Rulesets.Osu.Edit;
|
||||
using osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components;
|
||||
@ -61,9 +64,14 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
||||
}));
|
||||
AddStep("set beat divisor to 1/1", () =>
|
||||
{
|
||||
var beatDivisor = (BindableBeatDivisor)Editor.Dependencies.Get(typeof(BindableBeatDivisor));
|
||||
var beatDivisor = Editor.Dependencies.Get<BindableBeatDivisor>();
|
||||
beatDivisor.Value = 1;
|
||||
});
|
||||
AddStep("set distance spacing to 1", () =>
|
||||
{
|
||||
var distanceSpacing = (BindableFloat)Editor.ChildrenOfType<HitObjectComposer>().Single().DistanceSpacingMultiplier;
|
||||
distanceSpacing.Value = 1;
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@ -61,6 +61,7 @@ namespace osu.Game.Tests.Editing
|
||||
BeatDivisor.Value = 1;
|
||||
|
||||
composer.EditorBeatmap.Difficulty.SliderMultiplier = 1;
|
||||
composer.EditorBeatmap.BeatmapInfo.DistanceSpacing = 1;
|
||||
composer.EditorBeatmap.ControlPointInfo.Clear();
|
||||
composer.EditorBeatmap.ControlPointInfo.Add(0, new TimingControlPoint { BeatLength = 1000 });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user