mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
add test step
This commit is contained in:
parent
052772cce7
commit
4c18a67268
@ -1,7 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// 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.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using NUnit.Framework;
|
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Overlays.Mods;
|
using osu.Game.Overlays.Mods;
|
||||||
@ -13,8 +12,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
private ModButton modButton;
|
private ModButton modButton;
|
||||||
|
|
||||||
[SetUp]
|
public TestSceneModButton()
|
||||||
public void SetUp() => Schedule(() =>
|
|
||||||
{
|
{
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -24,7 +22,9 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
Origin = Anchor.Centre
|
Origin = Anchor.Centre
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
|
||||||
|
AddStep("left click", () => modButton.SelectNext(1));
|
||||||
|
}
|
||||||
|
|
||||||
private class TestMod1 : TestMod
|
private class TestMod1 : TestMod
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user