mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 02:12:56 +08:00
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|||
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|||
|
|
|||
|
using osu.Framework.Testing;
|
|||
|
using osu.Game.Graphics.UserInterface;
|
|||
|
using osu.Framework.Graphics;
|
|||
|
|
|||
|
namespace osu.Desktop.VisualTests.Tests
|
|||
|
{
|
|||
|
internal class TestCaseBreadcrumbs : TestCase
|
|||
|
{
|
|||
|
public override string Description => @"breadcrumb > control";
|
|||
|
|
|||
|
public override void Reset()
|
|||
|
{
|
|||
|
base.Reset();
|
|||
|
|
|||
|
BreadcrumbControl<BreadcrumbTab> c;
|
|||
|
Add(c = new BreadcrumbControl<BreadcrumbTab>
|
|||
|
{
|
|||
|
Anchor = Anchor.Centre,
|
|||
|
Origin = Anchor.Centre,
|
|||
|
RelativeSizeAxes = Axes.X,
|
|||
|
Width = 0.5f,
|
|||
|
});
|
|||
|
|
|||
|
AddStep(@"first", () => c.Current.Value = BreadcrumbTab.Click);
|
|||
|
AddStep(@"second", () => c.Current.Value = BreadcrumbTab.The);
|
|||
|
AddStep(@"third", () => c.Current.Value = BreadcrumbTab.Circles);
|
|||
|
}
|
|||
|
|
|||
|
private enum BreadcrumbTab
|
|||
|
{
|
|||
|
Click,
|
|||
|
The,
|
|||
|
Circles,
|
|||
|
}
|
|||
|
}
|
|||
|
}
|