2020-09-24 17:18:34 +08:00
|
|
|
// 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.
|
|
|
|
|
2020-09-25 11:42:37 +08:00
|
|
|
using NUnit.Framework;
|
2020-09-24 17:18:34 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.Settings
|
|
|
|
{
|
|
|
|
public class TestSceneFileSelector : OsuTestScene
|
|
|
|
{
|
2020-09-25 11:42:37 +08:00
|
|
|
[Test]
|
|
|
|
public void TestAllFiles()
|
2020-09-24 17:18:34 +08:00
|
|
|
{
|
2021-07-06 06:15:17 +08:00
|
|
|
AddStep("create", () => Child = new OsuFileSelector { RelativeSizeAxes = Axes.Both });
|
2020-09-25 11:42:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void TestJpgFilesOnly()
|
|
|
|
{
|
2021-07-06 06:15:17 +08:00
|
|
|
AddStep("create", () => Child = new OsuFileSelector(validFileExtensions: new[] { ".jpg" }) { RelativeSizeAxes = Axes.Both });
|
2020-09-24 17:18:34 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|