mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix failing diff adjust slider tests
This commit is contained in:
@ -13,6 +13,7 @@ using osu.Framework.Graphics.Shapes;
|
|||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Overlays.Settings;
|
using osu.Game.Overlays.Settings;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
using osu.Game.Rulesets.Osu.Mods;
|
using osu.Game.Rulesets.Osu.Mods;
|
||||||
@ -246,7 +247,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
AddStep($"Set {name} slider to {value}", () =>
|
AddStep($"Set {name} slider to {value}", () =>
|
||||||
this.ChildrenOfType<DifficultyAdjustSettingsControl>().First(c => c.LabelText == name)
|
this.ChildrenOfType<DifficultyAdjustSettingsControl>().First(c => c.LabelText == name)
|
||||||
.ChildrenOfType<SettingsSlider<float>>().First().Current.Value = value);
|
.ChildrenOfType<OsuSliderBar<float>>().First().Current.Value = value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkBindableAtValue(string name, float? expectedValue)
|
private void checkBindableAtValue(string name, float? expectedValue)
|
||||||
@ -260,7 +261,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
AddAssert($"Slider {name} at {expectedValue}", () =>
|
AddAssert($"Slider {name} at {expectedValue}", () =>
|
||||||
this.ChildrenOfType<DifficultyAdjustSettingsControl>().First(c => c.LabelText == name)
|
this.ChildrenOfType<DifficultyAdjustSettingsControl>().First(c => c.LabelText == name)
|
||||||
.ChildrenOfType<SettingsSlider<float>>().First().Current.Value == expectedValue);
|
.ChildrenOfType<OsuSliderBar<float>>().First().Current.Value == expectedValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setBeatmapWithDifficultyParameters(float value)
|
private void setBeatmapWithDifficultyParameters(float value)
|
||||||
|
Reference in New Issue
Block a user