1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 06:33:21 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseClickableText.cs
HoutarouOreki 2b7f657f2c Place HTML messages in a TextFlowContainer
Add missing accessibility modifier in ClickableText test case and fix disposal
2018-07-22 14:44:11 +02:00

30 lines
1.2 KiB
C#

// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using System;
using System.Collections.Generic;
namespace osu.Game.Tests.Visual
{
public class TestCaseClickableText : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[] { typeof(ClickableText), typeof(FillFlowContainer) };
public TestCaseClickableText() => Child = new FillFlowContainer
{
Children = new[]
{
new ClickableText { Text = "Default", },
new ClickableText { IsEnabled = false, Text = "Disabled", },
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)", },
new ClickableText { Text = "Has tooltip", TooltipText = "Yep", },
}
};
}
}