1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 15:27:20 +08:00

Add test step to test pushing after a previous screen is made current.

This commit is contained in:
DrabWeb 2018-05-11 04:45:27 -03:00
parent 6f7d0c19ef
commit fa403e4e2a
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using System.Linq;
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
@ -64,6 +65,8 @@ namespace osu.Game.Tests.Visual
});
assertCurrent();
pushNext();
AddAssert(@"assert there are only 2 items", () => breadcrumbs.Items.Count() == 2);
}
[BackgroundDependencyLoader]

View File

@ -47,6 +47,7 @@ namespace osu.Game.Graphics.UserInterface
public override bool HandleKeyboardInput => State == Visibility.Visible;
public override bool HandleMouseInput => State == Visibility.Visible;
public override bool IsRemovable => true;
private Visibility state;