mirror of
https://github.com/ppy/osu.git
synced 2025-02-28 03:53:20 +08:00
Add filter steps to carousel visual test
Just a couple of steps for added coverage in visual tests. Very on-the-surface, the unit tests are supposed to cover the gory details.
This commit is contained in:
parent
41569fd2b6
commit
51509f6be0
@ -242,6 +242,21 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
AddStep("Un-filter", () => carousel.Filter(new FilterCriteria(), false));
|
AddStep("Un-filter", () => carousel.Filter(new FilterCriteria(), false));
|
||||||
|
|
||||||
AddAssert("Selection is non-null", () => currentSelection != null);
|
AddAssert("Selection is non-null", () => currentSelection != null);
|
||||||
|
|
||||||
|
setSelected(1, 3);
|
||||||
|
AddStep("Apply a range filter", () => carousel.Filter(new FilterCriteria
|
||||||
|
{
|
||||||
|
SearchText = "#3",
|
||||||
|
StarDifficulty = new FilterCriteria.OptionalRange<double>
|
||||||
|
{
|
||||||
|
Min = 2,
|
||||||
|
Max = 5.5,
|
||||||
|
IsLowerInclusive = true
|
||||||
|
}
|
||||||
|
}, false));
|
||||||
|
checkSelected(3, 2);
|
||||||
|
|
||||||
|
AddStep("Un-filter", () => carousel.Filter(new FilterCriteria(), false));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user