mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 22:27:46 +08:00
Add test step to test pushing after a previous screen is made current.
This commit is contained in:
parent
6f7d0c19ef
commit
fa403e4e2a
@ -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]
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user