Make toolbar testable and add the most basic of visual tests

This commit is contained in:
Dean Herbert
2017-12-26 01:12:46 +09:00
parent 45e4c09cb8
commit dff082ed94
10 changed files with 42 additions and 10 deletions

View 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 });
}
}
}