add pinned test case for drawable comment

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-08-08 17:21:02 +07:00
parent 0901333ef3
commit ff860b90a9
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -43,6 +43,9 @@ namespace osu.Game.Tests.Visual.Online
{
AddStep(description, () =>
{
if (description == "Pinned")
comment.Pinned = true;
comment.Message = text;
container.Add(new DrawableComment(comment));
});
@ -59,6 +62,7 @@ namespace osu.Game.Tests.Visual.Online
private static object[] comments =
{
new[] { "Plain", "This is plain comment" },
new[] { "Pinned", "This is pinned comment" },
new[] { "Link", "Please visit https://osu.ppy.sh" },
new[]