mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix tests
This commit is contained in:
@ -255,6 +255,12 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
|||||||
createTestCase(beatmapSetInfo => new BeatmapCard(beatmapSetInfo));
|
createTestCase(beatmapSetInfo => new BeatmapCard(beatmapSetInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestExtra()
|
||||||
|
{
|
||||||
|
createTestCase(beatmapSetInfo => new BeatmapCardExtra(beatmapSetInfo));
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestHoverState()
|
public void TestHoverState()
|
||||||
{
|
{
|
||||||
@ -280,19 +286,5 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
|||||||
|
|
||||||
BeatmapCard firstCard() => this.ChildrenOfType<BeatmapCard>().First();
|
BeatmapCard firstCard() => this.ChildrenOfType<BeatmapCard>().First();
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestExtra()
|
|
||||||
{
|
|
||||||
createTestCase(beatmapSetInfo => new BeatmapCardExtra(beatmapSetInfo));
|
|
||||||
|
|
||||||
AddToggleStep("toggle expanded state", expanded =>
|
|
||||||
{
|
|
||||||
var card = this.ChildrenOfType<BeatmapCardExtra>().Last();
|
|
||||||
if (!card.Expanded.Disabled)
|
|
||||||
card.Expanded.Value = expanded;
|
|
||||||
});
|
|
||||||
AddToggleStep("disable/enable expansion", disabled => this.ChildrenOfType<BeatmapCardExtra>().ForEach(card => card.Expanded.Disabled = disabled));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user