1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Merge pull request #13314 from peppy/test-platform-actions

Add nested `PlatformActionContainer` to allow testing of platform actions in visual tests
This commit is contained in:
Dan Balasescu 2021-06-03 16:33:43 +09:00 committed by GitHub
commit ccb2fce0fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Input;
using osu.Framework.Testing.Input;
using osu.Game.Graphics.Cursor;
using osu.Game.Graphics.Sprites;
@ -48,7 +49,7 @@ namespace osu.Game.Tests.Visual
InputManager = new ManualInputManager
{
UseParentInput = true,
Child = mainContent
Child = new PlatformActionContainer().WithChild(mainContent)
},
new Container
{