1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-22 10:52:55 +08:00
osu-lazer/osu.Desktop.VisualTests/Tests/TestCaseSocial.cs

86 lines
3.3 KiB
C#
Raw Normal View History

2017-05-26 13:16:56 +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 osu.Framework.Testing;
using osu.Game.Overlays;
2017-05-26 13:00:38 +08:00
using osu.Game.Users;
namespace osu.Desktop.VisualTests.Tests
{
public class TestCaseSocial : TestCase
{
public override string Description => @"social browser overlay";
public override void Reset()
{
base.Reset();
2017-05-26 13:00:38 +08:00
SocialOverlay s = new SocialOverlay
{
Users = new[]
{
new User
{
Username = @"flyte",
Id = 3103765,
Country = new Country { FlagName = @"JP" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c1.jpg",
2017-05-26 13:00:38 +08:00
},
new User
{
Username = @"Cookiezi",
Id = 124493,
Country = new Country { FlagName = @"KR" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c2.jpg",
2017-05-26 13:00:38 +08:00
},
new User
{
2017-06-01 08:32:50 +08:00
Username = @"Angelsim",
2017-05-26 13:00:38 +08:00
Id = 1777162,
Country = new Country { FlagName = @"KR" },
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c3.jpg",
},
new User
{
Username = @"Rafis",
Id = 2558286,
Country = new Country { FlagName = @"PL" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c4.jpg",
2017-05-26 13:00:38 +08:00
},
new User
{
Username = @"hvick225",
Id = 50265,
Country = new Country { FlagName = @"TW" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c5.jpg",
2017-05-26 13:00:38 +08:00
},
new User
{
Username = @"peppy",
Id = 2,
Country = new Country { FlagName = @"AU" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c6.jpg"
2017-05-26 13:00:38 +08:00
},
new User
{
Username = @"filsdelama",
Id = 2831793,
Country = new Country { FlagName = @"FR" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c7.jpg"
2017-05-26 13:00:38 +08:00
},
new User
{
Username = @"_index",
Id = 652457,
Country = new Country { FlagName = @"RU" },
2017-05-28 04:23:14 +08:00
CoverUrl = @"https://osu.ppy.sh/images/headers/profile-covers/c8.jpg"
2017-05-26 13:00:38 +08:00
},
},
};
Add(s);
AddStep(@"toggle", s.ToggleVisibility);
}
}
}