2017-05-26 13:16:56 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-26 11:52:01 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Game.Overlays;
|
2017-05-26 13:00:38 +08:00
|
|
|
|
using osu.Game.Users;
|
2017-05-26 11:52:01 +08:00
|
|
|
|
|
2017-08-04 14:37:31 +08:00
|
|
|
|
namespace osu.Desktop.Tests.Visual
|
2017-05-26 11:52:01 +08:00
|
|
|
|
{
|
2017-08-04 14:37:31 +08:00
|
|
|
|
public class TestCaseSocial : OsuTestCase
|
2017-05-26 11:52:01 +08:00
|
|
|
|
{
|
|
|
|
|
public override string Description => @"social browser overlay";
|
|
|
|
|
|
2017-07-07 20:05:55 +08:00
|
|
|
|
public TestCaseSocial()
|
2017-05-26 11:52:01 +08:00
|
|
|
|
{
|
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
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
2017-05-26 11:52:01 +08:00
|
|
|
|
Add(s);
|
|
|
|
|
|
|
|
|
|
AddStep(@"toggle", s.ToggleVisibility);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|