mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Clean up exposed icon for tests
This commit is contained in:
parent
c9d21894e5
commit
0d6dbb6523
@ -10,6 +10,7 @@ using osuTK;
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
|
using osu.Framework.Testing;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.UserInterface
|
namespace osu.Game.Tests.Visual.UserInterface
|
||||||
{
|
{
|
||||||
@ -50,7 +51,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
private class TestButton : CommentRepliesButton
|
private class TestButton : CommentRepliesButton
|
||||||
{
|
{
|
||||||
public SpriteIcon Icon => InternalChildren.OfType<CircularContainer>().First().Children.OfType<Container>().First().Children.OfType<FillFlowContainer>().First().Children.OfType<SpriteIcon>().First();
|
public SpriteIcon Icon => this.ChildrenOfType<SpriteIcon>().First();
|
||||||
|
|
||||||
public TestButton()
|
public TestButton()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user