mirror of
https://github.com/ppy/osu
synced 2024-12-23 15:22:37 +00:00
add pinned test case for drawable comment
This commit is contained in:
parent
0901333ef3
commit
ff860b90a9
@ -43,6 +43,9 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
{
|
{
|
||||||
AddStep(description, () =>
|
AddStep(description, () =>
|
||||||
{
|
{
|
||||||
|
if (description == "Pinned")
|
||||||
|
comment.Pinned = true;
|
||||||
|
|
||||||
comment.Message = text;
|
comment.Message = text;
|
||||||
container.Add(new DrawableComment(comment));
|
container.Add(new DrawableComment(comment));
|
||||||
});
|
});
|
||||||
@ -59,6 +62,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
private static object[] comments =
|
private static object[] comments =
|
||||||
{
|
{
|
||||||
new[] { "Plain", "This is plain comment" },
|
new[] { "Plain", "This is plain comment" },
|
||||||
|
new[] { "Pinned", "This is pinned comment" },
|
||||||
new[] { "Link", "Please visit https://osu.ppy.sh" },
|
new[] { "Link", "Please visit https://osu.ppy.sh" },
|
||||||
|
|
||||||
new[]
|
new[]
|
||||||
|
Loading…
Reference in New Issue
Block a user