1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 12:37:29 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseMusicController.cs

32 lines
983 B
C#
Raw Normal View History

// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-03-28 20:03:34 +08:00
using osu.Framework.Testing;
2016-11-14 17:54:24 +08:00
using osu.Framework.Graphics;
using osu.Framework.Timing;
2016-11-14 17:54:24 +08:00
using osu.Game.Overlays;
2017-02-27 04:31:40 +08:00
using osu.Framework.Graphics.Containers;
2016-11-14 17:54:24 +08:00
namespace osu.Desktop.VisualTests.Tests
{
2017-03-07 09:59:19 +08:00
internal class TestCaseMusicController : TestCase
{
public override string Description => @"Tests music controller ui.";
public TestCaseMusicController()
{
Clock = new FramedClock();
2017-07-08 17:17:47 +08:00
var mc = new MusicController
{
Origin = Anchor.Centre,
Anchor = Anchor.Centre
};
Add(mc);
AddToggleStep(@"toggle visibility", state => mc.State = state ? Visibility.Visible : Visibility.Hidden);
AddStep(@"show", () => mc.State = Visibility.Visible);
}
}
}