mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Better choose new selection when multiple items are removed including current
This commit is contained in:
@ -257,9 +257,15 @@ namespace osu.Game.Tests.Visual
|
||||
private void testRemoveAll()
|
||||
{
|
||||
setSelected(2, 1);
|
||||
|
||||
AddAssert("Selection is non-null", () => currentSelection != null);
|
||||
|
||||
AddStep("Remove selected", () => carousel.RemoveBeatmapSet(carousel.SelectedBeatmapSet));
|
||||
checkSelected(2);
|
||||
|
||||
AddStep("Remove first", () => carousel.RemoveBeatmapSet(carousel.BeatmapSets.First()));
|
||||
AddStep("Remove first", () => carousel.RemoveBeatmapSet(carousel.BeatmapSets.First()));
|
||||
checkSelected(1);
|
||||
|
||||
AddUntilStep(() =>
|
||||
{
|
||||
carousel.RemoveBeatmapSet(carousel.BeatmapSets.Last());
|
||||
|
Reference in New Issue
Block a user