mirror of
https://github.com/ppy/osu
synced 2024-12-09 08:30:36 +00:00
Test star rating display with multiple sizes
This commit is contained in:
parent
14da5ab813
commit
0a8d37defa
@ -14,8 +14,10 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestSceneStarRatingDisplayV2 : OsuTestScene
|
||||
{
|
||||
[Test]
|
||||
public void TestDisplay()
|
||||
[TestCase(52f, 20f)]
|
||||
[TestCase(52f, 16f)]
|
||||
[TestCase(50f, 14f)]
|
||||
public void TestDisplay(float width, float height)
|
||||
{
|
||||
AddStep("load displays", () =>
|
||||
{
|
||||
@ -37,6 +39,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(width, height),
|
||||
})
|
||||
})
|
||||
};
|
||||
@ -52,6 +55,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(52f, 20f),
|
||||
});
|
||||
|
||||
AddRepeatStep("set random value", () =>
|
||||
|
Loading…
Reference in New Issue
Block a user