1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:07:23 +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]
public void TestUserOverrideMaintainedOnMatchingBeatmapValue()
{
setBeatmapWithDifficultyParameters(2);
setBeatmapWithDifficultyParameters(3);
checkSliderAtValue("Circle Size", 2);
checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", null);
setSliderValue("Circle Size", 9);
checkSliderAtValue("Circle Size", 9);
checkBindableAtValue("Circle Size", 9);
// need to initially change it away from the current beatmap value to trigger an override.
setSliderValue("Circle Size", 4);
setSliderValue("Circle Size", 3);
checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", 3);
setBeatmapWithDifficultyParameters(4);
checkSliderAtValue("Circle Size", 9);
checkBindableAtValue("Circle Size", 9);
checkSliderAtValue("Circle Size", 3);
checkBindableAtValue("Circle Size", 3);
}
private void resetToDefault(string name)