mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Add failing test
This commit is contained in:
parent
a141e2e8b7
commit
902734b75e
@ -83,6 +83,38 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
waitForSelection(set_count, 3);
|
waitForSelection(set_count, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestTraversalHold()
|
||||||
|
{
|
||||||
|
var sets = new List<BeatmapSetInfo>();
|
||||||
|
|
||||||
|
for (int i = 0; i < 20; i++)
|
||||||
|
{
|
||||||
|
var set = createTestBeatmapSet(i);
|
||||||
|
sets.Add(set);
|
||||||
|
}
|
||||||
|
|
||||||
|
loadBeatmaps(sets);
|
||||||
|
|
||||||
|
void selectNextAndAssert(int amount)
|
||||||
|
{
|
||||||
|
setSelected(1, 1);
|
||||||
|
AddStep($"Next beatmap {amount} times", () =>
|
||||||
|
{
|
||||||
|
for (int i = 0; i < amount; i++)
|
||||||
|
{
|
||||||
|
carousel.SelectNext();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
waitForSelection(amount + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 1; i < 15; i += i)
|
||||||
|
{
|
||||||
|
selectNextAndAssert(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test filtering
|
/// Test filtering
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user