mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Make toolbar testable and add the most basic of visual tests
This commit is contained in:
25
osu.Game.Tests/Visual/TestCaseToolbar.cs
Normal file
25
osu.Game.Tests/Visual/TestCaseToolbar.cs
Normal file
@ -0,0 +1,25 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Overlays.Toolbar;
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
public class TestCaseToolbar : OsuTestCase
|
||||
{
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||
{
|
||||
typeof(ToolbarButton),
|
||||
typeof(ToolbarModeSelector),
|
||||
typeof(ToolbarModeButton),
|
||||
};
|
||||
|
||||
public TestCaseToolbar()
|
||||
{
|
||||
Add(new Toolbar { State = Visibility.Visible });
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user