1
0
mirror of https://github.com/ppy/osu.git synced 2024-10-01 22:47:31 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseUserProfile.cs

39 lines
1.1 KiB
C#
Raw Normal View History

2017-06-05 21:04:35 +08:00
// 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 System.Linq;
using System.Text;
using System.Threading.Tasks;
using osu.Framework.Graphics;
using osu.Framework.Testing;
using osu.Game.Overlays;
using osu.Game.Users;
namespace osu.Desktop.VisualTests.Tests
{
2017-06-05 21:07:57 +08:00
internal class TestCaseUserProfile : TestCase
2017-06-05 21:04:35 +08:00
{
public override void Reset()
{
base.Reset();
2017-06-05 21:07:57 +08:00
var userpage = new UserProfile(new User
2017-06-05 21:04:35 +08:00
{
Username = @"peppy",
Id = 2,
Country = new Country { FlagName = @"AU" },
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c3.jpg"
})
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 800,
Height = 500
};
Add(userpage);
AddStep("Toggle", userpage.ToggleVisibility);
}
}
}