mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Make TestCaseNotificationOverlay dynamically testable
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -15,6 +16,15 @@ namespace osu.Game.Tests.Visual
|
|||||||
private readonly NotificationOverlay manager;
|
private readonly NotificationOverlay manager;
|
||||||
private readonly List<ProgressNotification> progressingNotifications = new List<ProgressNotification>();
|
private readonly List<ProgressNotification> progressingNotifications = new List<ProgressNotification>();
|
||||||
|
|
||||||
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||||
|
{
|
||||||
|
typeof(Notification),
|
||||||
|
typeof(ProgressNotification),
|
||||||
|
typeof(ProgressCompletionNotification),
|
||||||
|
typeof(SimpleNotification),
|
||||||
|
typeof(IHasCompletionTarget),
|
||||||
|
};
|
||||||
|
|
||||||
public TestCaseNotificationOverlay()
|
public TestCaseNotificationOverlay()
|
||||||
{
|
{
|
||||||
progressingNotifications.Clear();
|
progressingNotifications.Clear();
|
||||||
|
Reference in New Issue
Block a user