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