1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 20:07:29 +08:00

Update override matching test to match expectations

This commit is contained in:
Dean Herbert 2021-07-09 13:30:14 +09:00
parent f9cd7f10d8
commit 51bd83b3f4

View File

@ -139,19 +139,22 @@ namespace osu.Game.Tests.Visual.UserInterface
[Test] [Test]
public void TestUserOverrideMaintainedOnMatchingBeatmapValue() public void TestUserOverrideMaintainedOnMatchingBeatmapValue()
{ {
setBeatmapWithDifficultyParameters(2); setBeatmapWithDifficultyParameters(3);
checkSliderAtValue("Circle Size", 2); checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", null); checkBindableAtValue("Circle Size", null);
setSliderValue("Circle Size", 9); // need to initially change it away from the current beatmap value to trigger an override.
checkSliderAtValue("Circle Size", 9); setSliderValue("Circle Size", 4);
checkBindableAtValue("Circle Size", 9); setSliderValue("Circle Size", 3);
checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", 3);
setBeatmapWithDifficultyParameters(4); setBeatmapWithDifficultyParameters(4);
checkSliderAtValue("Circle Size", 9); checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", 9); checkBindableAtValue("Circle Size", 3);
} }
private void resetToDefault(string name) private void resetToDefault(string name)