mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 19:55:45 +08:00
Fix test regression
This commit is contained in:
parent
075ea70124
commit
345c7f4fa8
@ -24,10 +24,13 @@ namespace osu.Game.Tests.Visual
|
|||||||
public TestCaseToolbar()
|
public TestCaseToolbar()
|
||||||
{
|
{
|
||||||
var toolbar = new Toolbar { State = Visibility.Visible };
|
var toolbar = new Toolbar { State = Visibility.Visible };
|
||||||
|
ToolbarNotificationButton notificationButton = null;
|
||||||
|
|
||||||
|
AddStep("create toolbar", () =>
|
||||||
|
{
|
||||||
Add(toolbar);
|
Add(toolbar);
|
||||||
|
notificationButton = toolbar.Children.OfType<FillFlowContainer>().Last().Children.OfType<ToolbarNotificationButton>().First();
|
||||||
var notificationButton = toolbar.Children.OfType<FillFlowContainer>().Last().Children.OfType<ToolbarNotificationButton>().First();
|
});
|
||||||
|
|
||||||
void setNotifications(int count) => AddStep($"set notification count to {count}", () => notificationButton.NotificationCount.Value = count);
|
void setNotifications(int count) => AddStep($"set notification count to {count}", () => notificationButton.NotificationCount.Value = count);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user