Fix song select iteration when all panels are filtered

Resolves #2069.
This commit is contained in:
Dean Herbert
2018-02-27 17:50:26 +09:00
parent f76c6a47d2
commit 9b44f447ca
2 changed files with 12 additions and 4 deletions

View File

@ -207,6 +207,12 @@ namespace osu.Game.Tests.Visual
checkVisibleItemCount(true, 0);
AddAssert("Selection is null", () => currentSelection == null);
advanceSelection(true);
AddAssert("Selection is null", () => currentSelection == null);
advanceSelection(false);
AddAssert("Selection is null", () => currentSelection == null);
AddStep("Un-filter", () => carousel.Filter(new FilterCriteria(), false));
AddAssert("Selection is non-null", () => currentSelection != null);