mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 12:23:21 +08:00
Add failing tests for traversal on group headers
This commit is contained in:
parent
b433eef138
commit
b5c4e3bc14
@ -81,6 +81,20 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
BeatmapPanel? getSelectedPanel() => Carousel.ChildrenOfType<BeatmapPanel>().SingleOrDefault(p => p.Selected.Value);
|
BeatmapPanel? getSelectedPanel() => Carousel.ChildrenOfType<BeatmapPanel>().SingleOrDefault(p => p.Selected.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestGroupSelectionOnHeader()
|
||||||
|
{
|
||||||
|
AddBeatmaps(10, 3);
|
||||||
|
WaitForDrawablePanels();
|
||||||
|
|
||||||
|
SelectNextGroup();
|
||||||
|
WaitForGroupSelection(0, 0);
|
||||||
|
|
||||||
|
SelectPrevPanel();
|
||||||
|
SelectPrevGroup();
|
||||||
|
WaitForGroupSelection(2, 9);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestKeyboardSelection()
|
public void TestKeyboardSelection()
|
||||||
{
|
{
|
||||||
|
@ -129,6 +129,21 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
WaitForSelection(0, 0);
|
WaitForSelection(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestGroupSelectionOnHeader()
|
||||||
|
{
|
||||||
|
AddBeatmaps(10, 3);
|
||||||
|
WaitForDrawablePanels();
|
||||||
|
|
||||||
|
SelectNextGroup();
|
||||||
|
SelectNextGroup();
|
||||||
|
WaitForSelection(1, 0);
|
||||||
|
|
||||||
|
SelectPrevPanel();
|
||||||
|
SelectPrevGroup();
|
||||||
|
WaitForSelection(0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestKeyboardSelection()
|
public void TestKeyboardSelection()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user