1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Fix ClickableText test case

This commit is contained in:
HoutarouOreki 2018-07-22 15:16:42 +02:00
parent 2b7f657f2c
commit 421c95156b

View File

@ -12,6 +12,7 @@ namespace osu.Game.Tests.Visual
{
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ClickableText), typeof(FillFlowContainer) };
private readonly ClickableText text;
public TestCaseClickableText() => Child = new FillFlowContainer
{
Children = new[]
@ -21,7 +22,7 @@ namespace osu.Game.Tests.Visual
new ClickableText { Text = "Without sounds", IsMuted = true, },
new ClickableText { Text = "Without click sounds", IsClickMuted = true, },
new ClickableText { Text = "Without hover sounds", IsHoverMuted = true, },
new ClickableText { Text = "Disables after click (Action)", },
text = new ClickableText { Text = "Disables after click (Action)", Action = () => text.IsEnabled = false },
new ClickableText { Text = "Has tooltip", TooltipText = "Yep", },
}
};