1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 01:33:21 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseLabelledTextBox.cs

42 lines
1.3 KiB
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-07-20 19:28:39 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2018-07-25 20:14:40 +08:00
using osu.Framework.Graphics.Containers;
2018-07-20 19:28:39 +08:00
using System;
using System.Collections.Generic;
2018-11-06 17:28:22 +08:00
using osu.Game.Screens.Edit.Setup.Components.LabelledComponents;
2018-07-20 19:28:39 +08:00
namespace osu.Game.Tests.Visual
{
[TestFixture]
public class TestCaseLabelledTextBox : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(LabelledTextBox),
};
[BackgroundDependencyLoader]
private void load()
{
2018-07-25 20:14:40 +08:00
Child = new Container
2018-07-20 19:28:39 +08:00
{
2018-07-25 20:14:40 +08:00
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
Padding = new MarginPadding { Left = 150, Right = 150 },
Child = new LabelledTextBox
2018-07-20 19:28:39 +08:00
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
LabelText = "Testing text",
2018-07-23 20:44:10 +08:00
PlaceholderText = "This is definitely working as intended",
2018-07-20 19:28:39 +08:00
}
};
}
}
}